Regular Expressions 101

Library entries

Match quoted strings, ignoring escaped quotes

Vote

3

Regular Expression
pcre

/
(?| (")((?:\\"|[^"])+)\1 | (')((?:\\'|[^'])+)\1 )
/
xg

Description

Loading markdown...
Submitted by Maddingue - 8 years ago