Hi-
I'm completely stumped. I'm trying to write some code that will parse
a file and rewrite it with all URLs replaced by something else.
For example: if the file looks like this:
<b>click here</b><a href="http://www.cnn.com">cl ick me</a>
... then the output should be this:
<b>click here</b><a href="http://mysite?myurl=ww w.cnn.com">clic k
me</a>
Anyhelp on how to accomplish such thing would be really appreciated -
I spent hours on this and I'm completely stuck.
TIA,
JJ
I'm completely stumped. I'm trying to write some code that will parse
a file and rewrite it with all URLs replaced by something else.
For example: if the file looks like this:
<b>click here</b><a href="http://www.cnn.com">cl ick me</a>
... then the output should be this:
<b>click here</b><a href="http://mysite?myurl=ww w.cnn.com">clic k
me</a>
Anyhelp on how to accomplish such thing would be really appreciated -
I spent hours on this and I'm completely stuck.
TIA,
JJ
Comment