Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: regex not matching special char

by mnooning (Sexton)
on Dec 14, 2012 at 13:36 UTC ( #1008839=note: print w/ replies, xml ) Need Help??


in reply to Re: regex not matching special char
in thread regex not matching special char

For completeness, the code below was the final solution. This solution circumvents the problematic nuance that kennethk explained.

if ($line5 =~ m!(\\|\b)\Q$your_item\E(\\|\b)!i) { ... }

Thanks again


Comment on Re^2: regex not matching special char
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2014-10-25 07:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (142 votes), past polls