Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Need to match number other than 1

by grinder (Bishop)
on Nov 29, 2007 at 10:35 UTC ( [id://653799]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if ($num =~ /^[^\D1]\d+$/) {
       print "does not begin with a 1\n";
    }
    
  2. or download this
    if ($num =~ /^(?:[^\D1]|1\d)\d*$/) {
       print "not a 1\n";
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2024-04-19 09:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found