Regular Expressions 101

Community Patterns

Replace <?= $variable ?> with <?= purify($variable) ?>

1

Regular Expression
PCRE (PHP <7.3)

/
(<\?=) ( ( (?! (htmlspecialchars|htmlentities|json_encode) ) . )* [\$]{1,} (.*) ) (\?>)
/
gix

Description

no description available

Submitted by anonymous - 8 years ago