PDA

View Full Version : Script to turn all links into javascript or redirects



Westech
04-08-2004, 09:53 AM
Can anyone point me to a script or program that will go through an html file (or preferably a list of html files) and change all links into javascript links or redirects?

I seem to remember Mike talking about working on something like this in the past. Mike, did you have any luck?

Chris
04-08-2004, 10:03 AM
You could do a find/replace operation in a text editor. If it supports regular expressions it'd be even easier.

mobilebadboy
04-08-2004, 10:10 AM
Actual Search and Replace (http://www.divlocsoft.com/index.htm) has been my savior over the past years. Sometimes I use it alot strictly for searching when I know something's in a file on my computer, but I just can't remember what the file name is or where it's located.

chromate
04-08-2004, 10:13 AM
If you have access to your server via SSH you could use the grep command to do it I think. Can't remember exactly how though.

incka
04-08-2004, 10:47 AM
I used actual s&r until I converted to database driven php.

Nerpolllder
10-20-2014, 04:34 PM
Thank you for the*informative*posts.