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

Re:^2 Help with a more precise regex

by LogicalChaos (Beadle)
on Apr 25, 2003 at 20:25 UTC ( [id://253241]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if ( $value and $value !~ /^(?:(\d+)d)?(?:\s*(\d+)h)?$/i )
       {
    ...
       $day = $1 || 0;
       $hour = $2 || 0;
       }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-03-29 06:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found