Help for this page

Select Code to Download


  1. or download this
    if (/\D/)            { print "has nondigits\n" }
       if (/^\d+$/)         { print "is a whole number\n" }
    ...
       if (/^-?(?:\d+(?:\.\d*)?|\.\d+)$/) { print "is a decimal number" }
       if (/^([+-]?)(?=\d|\.\d)\d*(\.\d*)?([Ee]([+-]?\d+))?$/)
                { print "a C float" }
    
  2. or download this
    !~
    
  3. or download this
    =~