Skip to content

Instantly share code, notes, and snippets.

@xivSolutions
Created September 6, 2014 14:59
Show Gist options
  • Select an option

  • Save xivSolutions/78826966dc3ffd81035c to your computer and use it in GitHub Desktop.

Select an option

Save xivSolutions/78826966dc3ffd81035c to your computer and use it in GitHub Desktop.
C# Regex to split string and Preserve quoted text
splitArray = Regex.Split(subjectString, "(?<=^[^\"]*(?:\"[^\"]*\"[^\"]*)*) (?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)")
@xivSolutions

Copy link
Copy Markdown
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment