Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: Looking for a flexible regex...

by BrowserUk (Patriarch)
on Sep 22, 2013 at 07:10 UTC ( [id://1055171]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $s = "1-6,27,105-170,512,670-675";;
    
    ...
    105 170
    512 512
    670 675
    
  2. or download this
    qr[
        ^\s*                       ## from the start of the string, skip w
    +hitespace (if any)  
    ...
        )*                         ## zero or more times
        \s*$                       ## to the end of string, optionally ski
    +pping whitespace if any
    ]x
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-23 15:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found