Regular Expressions 101

Community Patterns

single or double quotes

0

Regular Expression
PCRE (PHP <7.3)

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

Description

Get anything inside quotes (single o double)

Submitted by garsax - 8 years ago