I’m struggling with this little problem of parsing the href and then changing it. So for example, I have a href value of ‘http://www.mysite.com/about/link.html‘ and what I need to do is change that to ‘http://www.mysite.com/about/new_link.html‘
Can someone please help me with this or point me to a script that does that.
Thanks for the script, but it actually replaces the text and not the actual href value. So I have my link <a href="http://www.mysite.com/about/link.html">A link</a> and what your script is doing is changing the text within the anchor tag i.e. <a href="http://www.mysite.com/about/link.html">new_link</a>. What I want it to do is change the href value so <a href="http://www.mysite.com/about/new_link.html">A link</a>