Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Reg Ex exercise

by Rudolf (Pilgrim)
on Dec 05, 2012 at 16:18 UTC ( #1007318=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if($input =~ /^(-?)((0|\d+).)?\d+$/)
    {
       print ("Yes, it is a number\n");
    }
    
  2. or download this
    if($input =~ /^(-?)(\d+.)?\d+$/)
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1007318]
help
Chatterbox?
and the daffodils sway...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2017-11-25 02:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (355 votes). Check out past polls.

    Notices?