Skip to content

Instantly share code, notes, and snippets.

@JoshuaCarroll
Created April 3, 2013 16:51
Show Gist options
  • Save JoshuaCarroll/5303018 to your computer and use it in GitHub Desktop.
Save JoshuaCarroll/5303018 to your computer and use it in GitHub Desktop.
This is a regular expression that will validate all email addresses in DISA's enterprise email system (aka "mail.mil").
((.*?(\.).*?(\.)(civ|mil|ctr|nfg)(@mail\.mil))|(.*?(\.)(([a-z])(\.)).*?(\.)(civ|mil|ctr|nfg)(@mail\.mil)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment