Simple email verification regex

Published on Tue Mar 01 2022

- Regular Expression ```js ^(?=[a-z][[email protected]_-]{5,40}$)[a-z0-9._-]{1,20}@(?:(?=[a-z0-9-]{1,15}\.)[a-z0-9]+(?:-[a-z0-9]+)*\.){1,2}[a-z]{2,6}$ ``` - By default, the app converts all the email value to lower case before validation. - Please use [regex101.com: email](https://regex101.com/r/UhWfkJ/1/) to analyse and validate the regex. - The error message for an invalid format, (to be translatable in Ar is supported). > `Please insert a valid email address`. **Example** - Valid sample: - [email protected]