I’m awful at Regular Expressions and need to do client side validation of a field.
What would be the Regular expression to test for a valid email address based on these rules:
E-mail addresses must have the following properties:
- An @ sign.
- At least one period (no two consecutively).
- At least one character between the @ and the first period.
- At least one character after the last period.
Thanks in advance.
-Seth
If you want to use a regex for this, at least do it right:
This regex was taken from this article, which you should definitely read in its entirety.