email validation in angular 4 code example Example: email validation pattern angular pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,3}$"