Regular Expressions 101

Community Patterns

Remove all <php tags from html file

0

Regular Expression
PCRE (PHP <7.3)

/
value="(?=<\?php)[^"]+"
/
g

Description

This regex is helpful to remove all <php ?> tags

Submitted by anonymous - 6 years ago