Friday, 19 December 2014

Replacing the <? with <?php using Regular expression

If you have older version of php where you probably using the <? tag like instead of <?php, then you may need to exclusively use <?php for newer version of PHP
In such case, please use the below regular expression to replace the tags on your project files;

Text to find:  [\<][\?][\p{Space}|\n]
Replace with:  <?php

No comments:

Post a Comment

Please post any queries and comments here.