I want to use the StringValidator, or some bit of action
script I suppose, to ensure that my end users has a password of 6
chars with at least one special character and at least one number.
I already have two password boxes and have the checks to
ensure that the password is the same in both boxes. Now all I need
to do is to validate the length and check for the required special
character and number. Any ideas???
The following code is not at all an elegant solution, but it
uses regular expressions, and may get you started:
<?xml version="1.0" encoding="utf-8"?>
public var digit:RegExp = /.*\d.*/;
public var special:RegExp = /.*\W|_.*/;