Regular expression validator

You may find the need to validate for any regular expression. Here is a simple example of a custom validator where you can add any regular expression to validate. You can set your custom error code.

MXML Source:





ActionScript Class (whiteSpaceValidator.as):


Share on Facebook