Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Regex not matching all in DB

by JamesNC (Chaplain)
on Jan 30, 2003 at 16:18 UTC ( #231361=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://231361]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2022-12-04 12:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?