Regular Expressions 101

Community Patterns

Match PHP define

0

Regular Expression
PCRE (PHP <7.3)

/
define+\(["' ](.*)["' ], ["' ](.*)[ "']\);
/

Description

Matches PHP define("CONSTANT", "VALUE)

Submitted by xZero - 9 years ago