Hello.

How would I go about verifying the registration form input? In this case I am using the core Profile module.

For example, I'd like to ensure that the phone number entered matches the (xxx)-xxx-xxxx format.
I would strongly prefer a general purpose tool that would accept the template as a RegEx or similarly powerful syntax.

Thank you very much for your help.

Alex.