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.


_______________________________________________
macports-users mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users

Reply via email to