Created
September 6, 2014 14:59
-
-
Save xivSolutions/78826966dc3ffd81035c to your computer and use it in GitHub Desktop.
C# Regex to split string and Preserve quoted text
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
splitArray = Regex.Split(subjectString, "(?<=^[^\"]*(?:\"[^\"]*\"[^\"]*)*) (?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From Stack Overflow Answer