replacing text, excluding what's between tags.

2001-08-24 Thread Danial Magid
HI, Here is a snippet of an html page.. This is a link to another place Here is what I am trying to do.. Replace the letter 'a' with the following: "a" I need to replace the letter 'a', only when it's not within the html tags. This is what I tried.. $newline = s/[^<.*?]($pattern).*?[^>]/$pa

Re: replacing text, excluding what's between tags.

2001-08-24 Thread Christopher Solomon
I'm not sure exactly what you want to do... Do you want to replace all of the marked a's: On Fri, 24 Aug 2001, Danial Magid wrote: > > This is a link to another place ^ ^ ^ or do you just want to replace the word 'a'? If you just want to repl