Home > Net >  Regex for validate educational email
Regex for validate educational email

Time:03-01

I want to validate educational email only for example [[email protected],[email protected]]

Thanks....

CodePudding user response:

This might work for you -

^[a-zA-Z0-9._% -] @[a-zA-Z0-9. -] \.edu$

Breaking down RegEx in simpler notation:

^ Beginning of string

[a-zA-Z0-9._% -] one or more letters, numbers, dots, underscores, percent-signs, plus-signs or dashes

@ @

[a-zA-Z0-9. -] one or more letters, numbers, dots, plus-signs or dashes

\.edu .edu

$ End of string

  • Related