Skip to content

Instantly share code, notes, and snippets.

@rjshekar90
Created March 17, 2017 21:45
Show Gist options
  • Save rjshekar90/648c1d8aaa215f621fdb9797a08fe13e to your computer and use it in GitHub Desktop.
Save rjshekar90/648c1d8aaa215f621fdb9797a08fe13e to your computer and use it in GitHub Desktop.
import re
def fun(s):
return re.fullmatch(r'^[a-zA-Z0-9_\-]+[@]{1}[a-zA-Z0-9]+[.]{1}[a-zA-Z]{1,3}$', s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment