slickricky
07-24-2005, 03:03 AM
I'm trying to write this search and replace script using the extended replace option in Macromedia Homesite 5, but I can't seem to get anything to work. I found an example on this forum of a similar replace, but it doesn't work at all either. (I do have the regular expressions box checked too : )
Find: src\=\"([a-z\.]+)\"
Replace: src\=\"/new_path/\1\"
<img src="my_file.png">
to
<img src="/new_path/my_file.png">
What I'm trying to do in the end is replace all instances of the following examples with one expression:
www.mysite.com/somerandomfolder/somerandomfile.html
www.mysite.com/randomfilename.html
with
www.mysite.com/somerandomfolder/somerandomfile.php
www.mysite.com/randomfilename.php
Is this possible? If it can't be done with Homesite, is there another program that will do it?
Find: src\=\"([a-z\.]+)\"
Replace: src\=\"/new_path/\1\"
<img src="my_file.png">
to
<img src="/new_path/my_file.png">
What I'm trying to do in the end is replace all instances of the following examples with one expression:
www.mysite.com/somerandomfolder/somerandomfile.html
www.mysite.com/randomfilename.html
with
www.mysite.com/somerandomfolder/somerandomfile.php
www.mysite.com/randomfilename.php
Is this possible? If it can't be done with Homesite, is there another program that will do it?