Regular Expressions 101

Community Patterns

Outside Quotes

3

Regular Expression
ECMAScript (JavaScript)

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

Description

match any string outside of single or double quotes

Submitted by anonymous - 10 years ago