|
Posted by Piratron on 02/13/06 01:05
Hey ppl,
I have a problem which needs to be solved very soon :)
Anyway I would like to replace all occurrences of a substring in a
string which consists of html code.
However those substrings appear between few ignore tags as in example
bellow.
Code (string variable):
-----------------------
<!--c1--><div class='codetop'>CODE</div><div
class='codemain'><!--ec1-->{POST_CODE}<!--ec2-->
-----------------------
so, I would like to replace all occurrences of "{POST_CODE}" with
another string. To be precise {POST_CODE} is actually html data of
variable length.
After all I would like to use preg_replace or eregi_replace. What do you
think? Or it can be solved by using another methods?
Thank you very much,
Piratron
--
Please visit our site at:
www.symbian-mobile.org
Regards,
Symbian-Mobile Team
Navigation:
[Reply to this message]
|