http://qs1969.pair.com?node_id=231361


in reply to Regex not matching all in DB

you need to escape some stuff...try:
$_[0] =~ s/\&lt\;/</g; $_[0] =~ s/\&gt\;/>/g;

Replies are listed 'Best First'.
Re: Regex not matching all in DB
by Abigail-II (Bishop) on Jan 30, 2003 at 17:43 UTC
    Huh? You only need to escape characters that have a special meaning for the regex machine. Care to point out the meaning of ;?

    And could you also write a doc patch? perlre.pod doesn't document the special behaviour of the semi-colon.

    Abigail