Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Storing regexen in a DB and using them

by FloydATC (Chaplain)
on Jan 28, 2014 at 11:42 UTC ( #1072342=note: print w/ replies, xml ) Need Help??


in reply to Storing regexen in a DB and using them

No special action is required, the following works as expected as long as $regex contains a valid regex:

if ($input =~ /$regex/) { ... }
-- FloydATC

Time flies when you don't know what you're doing


Comment on Re: Storing regexen in a DB and using them
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2014-12-21 15:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (106 votes), past polls