Community Patterns

Community Library Entry

3

Regular Expression
Created·2013-06-26 14:28
Flavor·PCRE (Legacy)

/
(?| (")((?:\\"|[^"])+)\1 | (')((?:\\'|[^'])+)\1 )
/
xg
Open regex in editor

Description

Matches single or double quoted strings, and ignores backslash-escaped quotes within the string.

Submitted by Maddingue