diff options
Diffstat (limited to 'progs/a173.py')
-rw-r--r-- | progs/a173.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/progs/a173.py b/progs/a173.py new file mode 100644 index 0000000..c2e9205 --- /dev/null +++ b/progs/a173.py @@ -0,0 +1,7 @@ +import re
+regex = '^[a-z0-9]+[\._]?[a-z0-9]+[@]\w+[.]\w{2,3}$'
+def check_email(email):
+ if(re.search(regex,email)):
+ return ("Valid Email")
+ else:
+ return ("Invalid Email")
\ No newline at end of file |