Find PHP short open tags
03 May 2019Using PHPStorm1
<\?(?!php|xml)
Bash to find2
find -f ./ | grep -rn "<?[^p]\|<?$" *.php
Replace PHP short open tags with full form in all ‘.php’ files using one command
<\?(?!php|xml)
find -f ./ | grep -rn "<?[^p]\|<?$" *.php
Replace PHP short open tags with full form in all ‘.php’ files using one command