Hi
Suppose I have following URLs comming from an HTML document
<a href="http://mydomain1.com"> Domain1</a>
<a
href="http://subdomain.domai n.com/myfile.anyext"> http://subdomain.domai n.com/myfile.anyext</a>
<a href="http://subdomain.domai n2.com/myfile.anyext"> Domain2</a>
Now,what I want to search URL pattern within Href only as well as check
if it contains a particular domain ,for instance "domain2.co m", if yes
then it replace with following URL.
"http://redirectUrl.com/http://subdomain.domai n2.com/myfile.anyext"
can anyone shed light upon this?
Thankyou
-adnan
Suppose I have following URLs comming from an HTML document
<a href="http://mydomain1.com"> Domain1</a>
<a
href="http://subdomain.domai n.com/myfile.anyext"> http://subdomain.domai n.com/myfile.anyext</a>
<a href="http://subdomain.domai n2.com/myfile.anyext"> Domain2</a>
Now,what I want to search URL pattern within Href only as well as check
if it contains a particular domain ,for instance "domain2.co m", if yes
then it replace with following URL.
"http://redirectUrl.com/http://subdomain.domai n2.com/myfile.anyext"
can anyone shed light upon this?
Thankyou
-adnan
Comment