Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
(["'])((?:\\\1|(?!\1).)+)\1
/
g

Description

Get anything inside quotes (single o double)

Submitted by garsax - 9 years ago