Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Problem using value of variable in a regular expression

by JediWizard (Deacon)
on Jul 30, 2010 at 14:30 UTC ( [id://852094]=note: print w/replies, xml ) Need Help??


in reply to Problem using value of variable in a regular expression

You might also consider using quotemeta or the \Q and \E operators.

My other thought here, because you don't appear to need the power of a regular expression (you are just looking to see if one string contains another), index will give you that information with much less overhead.


They say that time changes things, but you actually have to change them yourself.

—Andy Warhol

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2024-03-28 21:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found