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 chanting in the Monastery: (8)
As of 2015-04-02 01:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who makes your decisions?







    Results (53 votes), past polls