I am attempting to create a regular expression for validating edu emails which may or may not have a sub domain. Some schools have emails like "example@hms.harvard.edu" while other schools have emails like "example@stanford.edu".
([0-9]|[a-z]|[A-Z])+@([0-9]|[a-z]|[A-Z])+([0-9]|[a-z]|[A-Z])\.edu$"
This is the current regular expression that I have but I am not well versed in these. I am looking to create an expression that will validate emails with one domain and emails with a subdomain.
Any help would be appreciated. Thanks!