I am looking for the same solution, e.g.:
Find:
blah, blah blah<a href="http://this is my space.com">My Space</a>blah, blah
Replace as:
blah, blah blah<a href="http://this_is_my_space.com">My Space</a>blah, blah
with Dreamweaver or BBEdit, not any programming languages.
I read that you can't do it because it requires recurvise search as there's no known number of space character in the url.
I tested in Expresso with just the <a> tags
(?<=<a href=")?([^(<a )"]\w+)(\s)
Find:
<a href="Using the Rectangle and Rectangle Primitive tools.mov">
Result:
<a href="Using_the_Rectangle_and_Rectangle_Primitive_tools.mov">
but also converted "blah blah" (non-a-tag contents) into "blah_blah" as well.
blah blah <a href="Using the Rectangle and Rectangle Primitive tools.mov">blah blah
blah_blah_<a href="Using_the_Rectangle_and_Rectangle_Primitive_tools.mov">blah_blah
Any help will be appreciated.
Jay