Help for this page

Select Code to Download


  1. or download this
    if( $string =~ /^$RE{num}{real}$/ ) {
      print "Match!\n";
    ...
    else {
      print "Reject!\n";
    }
    
  2. or download this
    perl -MRegexp::Common=number -E 'say $RE{num}{real}'
    (?:(?i)(?:[-+]?)(?:(?=[.]?[0123456789])(?:[0123456789]*)(?:(?:[.])(?:[
    +0123456789]{0,}))?)(?:(?:[E])(?:(?:[-+]?)(?:[0123456789]+))|))