RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details 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
   Displaying page 1 of 1 pages; Items 1 to 1

Copyright © 2001-2024, RegexAdvice.com | ASP.NET Tutorials