Well, it can't be done with a single regex, as far as I can see.
However, you can do it with several.

I assume that when you say "one" you really mean "one or more".
Obviously, you can check the length with len().

Upper case letters can be checked for with
refind(string, "[A-Z]")
lowercase with [a-z]
digits with [0-9]

I should point out that @, #, etc don't have ascii values over 128.  @
is 64, for example.  What I assume you mean is that you want something
that is not a letter or number.  You can check with this:
refindnocase(string, "[^0-9a-z]")

HTH.  If you need more guidance, feel free to ask.

--Ben Doom

Yager, Brian CTR wrote:

> I am trying to write a procedure for password changes.  The password must
> follow the following rules.  I am wanting to know if this can be done via
> reg-ex.
>
> Total length of password must be 8 characters
> Must include one upper case letter
> Must include one lower case letter
> Must include one character greater then the 128-bit ASCII character (ie.
> @,#,$,%, etc..)
> Must include at least one number
>
> Is this too much to ask?
>
> Thanks for your help.
>
> Brian Yager
>
> Brian Yager
> President - North Alabama
> Cold Fusion Users Group
> http://www.nacfug.com
> GMD-JPO OCD IT
> Computer Scientist - Contractor CSC
> (256)313-9668
> [EMAIL PROTECTED]
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to