Regular Expressions 101

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