Created
March 17, 2017 21:45
-
-
Save rjshekar90/648c1d8aaa215f621fdb9797a08fe13e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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