First page Back Continue Last page Image

/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;

This Regular Expression can validate an email address

/ -The Start and End of the Regular Expression

^ -We are examining a String

()-A And Group

\. - Escaped "."

?- 0 or 1 of what comes before

*- 1 or more of what comes before

$-String Must End Here

{} - How Many of what is before allowed

\w - Any Letter (A-Z & a-z) or Number (0-9) ot the Underscore (_)

+ - One or more of whatever came before

[]-A Or Group