Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Regular expression match trouble with "+"

by artist (Parson)
on Aug 16, 2006 at 15:43 UTC ( [id://567720]=note: print w/replies, xml ) Need Help??


in reply to Regular expression match trouble with "+"

Look for perldoc -q regex and perldoc -f quotemeta. I think that it's the proper way to do it. I don't know why converting to lower case via lc() also works.
--Artist
  • Comment on Re: Regular expression match trouble with "+"

Replies are listed 'Best First'.
Re^2: Regular expression match trouble with "+"
by ikegami (Patriarch) on Aug 16, 2006 at 16:10 UTC
    It's the use of eq instead of m// that makes it work, not the conversion to lowercase. Converting to lowercase is to string compares what /i is to regexps.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2024-04-25 22:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found