Hemi UI / Diatleslinqn (TBD) (WIP) / CRUD (Create, Read, Update, Delete) / Form Fields / Validators / Email Validator

Email Validator

Checks if the provided value is a valid email address. The default matching for an email is

/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$

. It means any word symbol plus a ‘-’  or ‘.’followed by ‘@’ and then again the same word symbols. Both of those at lease once. Followed by between 2 and 4 word symbols

Default error message:

Value is not a valid email address.

Is this article helpful?
0 0 0