Regular Expressions 101

Community Patterns

Separate by double quotes

1

Regular Expression
ECMAScript (JavaScript)

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

Description

String that may begin or end with spaces, and contains double-quoted text, separated by a number of spaces

Submitted by Rafael Sanchez - 8 years ago