Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Regex not working

by davorg (Chancellor)
on Jul 17, 2009 at 09:44 UTC ( #780984=note: print w/replies, xml ) Need Help??


in reply to Re: Regex not working
in thread Regex not working

Also use qr to quote regular expressions instead of manually backslashing everything.

That's actually not necessary here. The OP was just escaping things that didn't need escaping.

$x = "<div class='roundedBoxBody'><p>"; $y = '<p>&nbsp;</p></p>';

Works just as well.

--

See the Copyright notice on my home node.

Perl training courses

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2023-12-02 06:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (13 votes). Check out past polls.

    Notices?