|
|
Browse by Tags
All Tags » php » html
-
Thanks again Sergei. I found the solution, your regex was perfect, it's just a PHP oddity. This page on php.net:
http://www.php.net/manual/en/function.preg-replace.php
describes pre_replace and c_stewart0a at yahoo dot com had the solution which is:
"you will want to quote your searching expression with /"
This did the job. So ...
-
I'm trying to replace all occurences of a word outside xhtml tags in in xhtml source code using preg_replace() in PHP. For example I don't want to accidently replace the <body> tag when trying to replace all all occurences of 'body' with 'torso' in the xhtml code.
I've been trying ...
|
|
|