Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Problem using value of variable in a regular expression

by JediWizard (Deacon)
on Jul 30, 2010 at 14:30 UTC ( #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?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2021-06-23 21:35 GMT
Find Nodes?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)

    Results (122 votes). Check out past polls.