| Title |
Test
Find
Split string by spaces except when within quotes
|
| Expression |
\s(?=([^"]*"[^"]*"[^"]*)*$|[^"]*$) |
| Description |
Splits a string by spaces, except when the space is within a quote delimited set of characters. Usefull for splitting search field inputs.
Props to killahbeez |
| Matches |
"two key" words | "three key words | three key words |
| Non-Matches |
"no matches" | "noMatches" | noMatches |
| Author |
Rating:
Not yet rated.
boris callens
|
| Source |
http://regexadvice.com/forums/41907/ShowThread.aspx#41907 |
| Your Rating |
|