Community Patterns

Community Library Entry

7

Regular Expression
Created·2013-12-29 18:41
Flavor·ECMAScript (JavaScript)

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

Description

Find " and ' quoted strings and "orphaned"/single words in a string

Submitted by LoveIsGrief