kaancho12
Technical User
- Feb 22, 2005
- 191
hi,
i guess this str_replace doesnt really work when the content is not delimited by line. let me explain:
i have this "html" file with all the contents dumped without any separation and when trying to execute str_replace -it fails to find the pattern and thus fails...is there a solution to this??
here's an example of what i am trying to do:
The string I am trying to find:
<A HREF=\"/ABC/10to99/pdf/ABC20.pdf\">20</A>
The string i am trying to replace with:
<A HREF=\"/ABC/10to99/pdf/ABC20.pdf\">20</A><input type=\"button\" name=\"button_20\" onClick=\"Locat(\'ABC/html/10to99/ABC20.html/\');return false\">
The HTML file is all in one line and probably can be broken through regex but i was wondering if there were other solutions
thanks ko12
i guess this str_replace doesnt really work when the content is not delimited by line. let me explain:
i have this "html" file with all the contents dumped without any separation and when trying to execute str_replace -it fails to find the pattern and thus fails...is there a solution to this??
here's an example of what i am trying to do:
The string I am trying to find:
<A HREF=\"/ABC/10to99/pdf/ABC20.pdf\">20</A>
The string i am trying to replace with:
<A HREF=\"/ABC/10to99/pdf/ABC20.pdf\">20</A><input type=\"button\" name=\"button_20\" onClick=\"Locat(\'ABC/html/10to99/ABC20.html/\');return false\">
The HTML file is all in one line and probably can be broken through regex but i was wondering if there were other solutions
thanks ko12