Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Quickie regular expression question.

by RazorbladeBidet (Friar)
on Mar 16, 2005 at 17:16 UTC ( [id://440031]=note: print w/replies, xml ) Need Help??


in reply to Quickie regular expression question.

You want
if ( $newpasswd !~ /^[A-Za-z0-9]+$/ ) { # blah }
(if you want the "blah" to execute when the variable contains anything EXCEPT ALL letters and/or numbers)
--------------
It's sad that a family can be torn apart by such a such a simple thing as a pack of wild dogs

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-03-29 14:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found