You might be able to do it in one regexp but 2 will be a lot less
effort & a lot easier to understand 6 months from now.

Dick

On Jun 29, 2004, at 6:37 PM, Charlie Griefer wrote:

> ...but that won't ensure at least one alpha and one numeric...
>
>  AAAAA will pass (should fail)
>  12345 will pass (should fail)
>
>  Maybe it should just be two separate regex calls?��One to check for an
>  alpha and a number...and another to check for no non-alphanumerics (?)
>
>  Charlie
>
>  -----Original Message-----
>  From: Dick Applebaum [mailto:[EMAIL PROTECTED]
>  Sent: Tuesday, June 29, 2004 6:11 PM
>  To: CF-Talk
>  Subject: Re: More fun with regular expressions
>
>  ReFindNoCase("[^A-Z0-9]", yourSource)
>
>  HTH
>
>  Dick
>
>  On Jun 29, 2004, at 1:40 PM, Charlie Griefer wrote:
>
>  > Hey regexp gurus...
>  >
>  >��I'm trying to formulate an _expression_ that checks a string for at
>  > least one
>  >��alpha and at least one numeric character, but -no- non-alphanumeric
>  >��characters.
>  >
>  >��Getting the alphanumeric combo I seem to have been able to do...but
>  > adding
>  >��the 'no non-alphanumerics' into the _expression_ isn't working out
> for
>  > me.
>  >
>  >��Much appreciation in advance.
>  >
>  >��Charlie
>  >
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to