Re: "negative" regexp



Petr Vileta <stoupa@xxxxxxxxxxxxx> wrote:


$html=~s/<\!\-\-.+?\-\->//sig;


Unnecessary backslashes make your code much harder to read
and understand. You should backslash only when you actually
need to.

There is not much point in ignoring case when your pattern
does not contain any letters...


$html =~ s/<!--.+?-->//sg;


--
Tad McClellan
email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"
.