On Fri, 2004-01-16 at 10:07, Tobias Engelhardt wrote: > That is not possible because the id's are hard-coded in thousands of > html-pages. Not a very good idea, i know. It wasn't mine... I *have* to > use search/replace. (A script processes each file in the directory)
Ah, I see. I think you could use str_replace (untested): $a = 'order.php?order_id='; $b = 'order_'; $c = '<a href="order.php?order_id=12345">'; $new = str_replace($a, $b, $c).'.html'; - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php