One way will be to use regular expression
http://phillipnb.wordpress.com/2011/03/ ... ns-part-1/
Another way - use strpos() and find the start/end position of the text that you want to replace and then do a substr_replace()
Moderators: egami, macek, gesf