PHP errors after installation MAMP via MacPorts

Ryan Schmidt ryandesign at macports.org
Sun Jan 17 02:29:36 PST 2010


On Jan 17, 2010, at 04:20, Jasper Frumau wrote:

> TextMate's search and replace does not seem to offer a search and replace across multiple files that is precise enough. I need to replace <? by <?php and <? only.  When I look for <? I get <?php as well. I am looking into a neat command to do it as well as TextWrangler. 

Just some regular expression magic.


Search for: <\?=

Replace with: <?php echo


Search for: <\?(?![a-z=])

Replace with: <?php


I'm not sure that covers 100% of cases, but it's a good start.




More information about the macports-users mailing list