When someone adds or resets a password, I'm trying to make sure what they
entered matches the pattern I described below.

----- Original Message -----
From: "Jerry Johnson" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, June 25, 2004 4:14 PM
Subject: Re: A little regexp help

> Are you trying to FIND a valid string, an invalid string, or are you
trying to FIX an invalid string?
>
> Jerry Johnson
>
> >>> [EMAIL PROTECTED] 06/25/04 04:04PM >>>
> Thanks, but doesn't quite do it.  I should probably clarify what I need.
I
> left out an important word last time.
>
> What I need to end up with is a string that is anywhere between 6 and 20
> characters long that contains _only_ letters and/or numbers.  No special
> characters at all.  In the case of ^[a-zA-Z0-9]{6,20}$ it allows special
> characters once it finds at least 6 letters and/or numbers.  It's that
> "only" part that is giving me trouble.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to