Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Composing regex's dynamically

by RMGir (Prior)
on Apr 27, 2011 at 12:54 UTC ( #901560=note: print w/ replies, xml ) Need Help??


in reply to Composing regex's dynamically

I was going to suggest Regex::PreSuf, but when searching for that, I found Regexp::Assemble. That seems like exactly what you're looking for...

(Although Corion's suggestion should work just fine, too, if you're just alternating strings...)


Mike

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2016-06-25 11:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (325 votes). Check out past polls.