I need to split a string like the one below, based on space as the delimiter. But any space within a quote should be preserved.
research library \"not availa
Here you go:
C#:
Regex.Matches(subject, @"([^\s]*""[^""]+""[^\s]*)|\w+")
Regular expression:
([^\s]*\"[^\"]+\"[^\s]*)|\w+