Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Regex not matching all in DB

by JamesNC (Chaplain)
on Jan 30, 2003 at 16:18 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others studying the Monastery: (8)
As of 2024-03-28 12:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found