Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Re: specific numbers of digits

by awkmonk (Monk)
on Mar 19, 2003 at 14:30 UTC ( [id://244342]=note: print w/replies, xml ) Need Help??

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";
       }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2024-04-26 00:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found