Skip to content

Instantly share code, notes, and snippets.

@JoshuaCarroll
Created April 3, 2013 16:54
Show Gist options
  • Save JoshuaCarroll/5303046 to your computer and use it in GitHub Desktop.
Save JoshuaCarroll/5303046 to your computer and use it in GitHub Desktop.
This regular expression will validate any mail.mil or AKO email address.
((.*?(\.).*?(@us\.army\.mil))|(.*?(\.).*?(\.)(civ|mil|ctr|nfg)(@mail\.mil))|(.*?(\.)(([a-z])(\.)).*?(\.)(civ|mil|ctr|nfg)(@mail\.mil)))
@JoshuaCarroll
Copy link
Author

You can parse this easily using http://www.regexper.com/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment