Help for this page

Select Code to Download


  1. or download this
    $x = "123456";
    if ( $x =~ /\d{5,5}/ ) {
       print "wrong";
       }
    
  2. or download this
    $x = "123456";
    if ( $x =~ /^\d{5}$/ ) {
       print "right";
       }