Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1054869]
help
Chatterbox?
and a log crumbles through the grate...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2017-11-22 06:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (316 votes). Check out past polls.

    Notices?