Regular Expressions 101

Community Patterns

Community Library Entry

3

Regular Expression
ECMAScript (JavaScript)

/
(str)(?=(?:[^'"]|["'][^'"]*["'])*$)
/
g

Description

match any string outside of single or double quotes

Submitted by anonymous - 11 years ago