RE: Anyone have a tool/script to convert <? to <?php (but not <?=)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks guys for the replies so far, however, if it were a simple search and replace I wouldn't have to ask ;-)

The trick is that "<?=" is valid and legal and I want to keep those. I only want to change if they are specifically "<?"

Maybe there is some regex guru out there that knows the magic incantation.

Related, for extra credit it drives me bonkers to see this:

	Hello <?= $username; ?>   

Note the end semicolon on the variable. I'd want to strip all those off too, but that is also not a trivial task if you think about it as it can only be removed if proceeded with <?= 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php






[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux