Community Patterns

Community Library Entry

25

Regular Expression
Created·2015-05-10 20:48
Flavor·ECMAScript (JavaScript)

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

Description

Matches text within quotes (", ') and escapes the charecters.

Submitted by Vihan Bhargava