Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
[^\s"]+|"([^"]*)"
/
g

Description

Spilt a string grouping words in quotes.

String: First Last "Full Name" Matches: First|Last|"Full Name"

Submitted by Frosty - a year ago