HTML pattern attribute for email validation -


i need email address of user match format while registering.

name.name@gmail.com 

he should not able enter @yahoo.com or @hotmail.com or else other @gmail.com. also, allowed enter lower case letters , period [.] if wants. may please know how achieve this? have got far.

pattern ="[a-z.]+@gmail.com" 

try

/^([a-z0-9.])+\@gmail.com+$/ 

Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -