Regular Expressions 101

Library entries

Split quotes and single words

Vote

5

Regular Expression
javascript

/
"([^"\\]*(?:\\.[^"\\]*)*)"|\w+|'([^'\\]*(?:\\.[^'\\]*)*)'
/
g

Description

Loading markdown...
Submitted by LoveIsGrief - 8 years ago