Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion build.py
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@

import re
def validate_email(string):
boolean = False
pattern = "[\w\.-]+@[\w\.-]+"
match = re.findall(pattern, string) #TO FINDALL THE PATTERN IN A GIVEN STRING
# match = re.split('\s', string)
# print match
for element in match:
# print element
if string in element:
boolean = True
return boolean
else:
return boolean
Binary file added build.pyc
Binary file not shown.
Binary file added tests/__init__.pyc
Binary file not shown.
Binary file added tests/test_validate_email.pyc
Binary file not shown.