hi

i want to search for a pattern in html text and replace only those occurences that are not enclosed inside <> (html tag, not perl operator).
i was thinking of something like

$string =~ s/$pattern/test for <> or similar; else replace/ge;

another way could be splitting $string into an array, where html tags and other text are separated elements, but i don't know how to do this either

sounds like an easy task but i haven't managed to accomplish it yet.
thanks for your help

matthias


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to