Regular Expressions 101

Community Patterns

Quote Macthing with escape

24

Regular Expression
ECMAScript (JavaScript)

/
(["'])((?:(?=(?:\\)*)\\.|.)*?)\1
/
gm

Description

Loading markdown...
Submitted by Vihan Bhargava - 8 years ago