Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Looking for a flexible regex...

by daxim (Chaplain)
on Sep 19, 2013 at 15:38 UTC ( #1054869=note: print w/ replies, xml ) Need Help??


in reply to Looking for a flexible regex...

my $single_range = qr/(?:\d+-\d+)/amsx; '1-5, 20-250, 37000-41000' =~ /(?: $single_range , [ ]? )* $single_range/msx;


Comment on Re: Looking for a flexible regex...
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2014-12-27 12:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (177 votes), past polls