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
12 changes: 12 additions & 0 deletions build.py
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
import re

def validate_email(ip):
result = True
cnt = re.findall('^[A-Za-z0-9].*@.*\.com',ip)
print cnt
if cnt == []:
result = False
print result
return result


validate_email('adinathau2ti@ysmail.com')
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.