- May 31, 2002
- 71
- 0
- 0
I am trying to do a search and replace in a cgi file. I need to search for all href= except those that have a mailto. So
Search for
href="
except if href="mailto
I want to do this in a regular expression. I could do it with some if statements but I figure regular expression will jsut be quicker.
I tried
s/href="?[^m]/$replace
but this does not seem to work. for some reason the href="mailto still matches.
any ideas.
Search for
href="
except if href="mailto
I want to do this in a regular expression. I could do it with some if statements but I figure regular expression will jsut be quicker.
I tried
s/href="?[^m]/$replace
but this does not seem to work. for some reason the href="mailto still matches.
any ideas.