Regular Expressions 101

Community Patterns

Find legacy PHP opening tags

1

Regular Expression
PCRE (PHP <7.3)

Description

Matches <? not followed by a p or an x (finds <? and <?=, ignores <?php and <?xml

Submitted by anonymous - 9 years ago