Redsuncube
Give a regular expression that validates email id using python regular expression module re
Python provides a regular expression module
re
Here is the re that validates a email id of .com and .co.in subdomain:
re.search(r"[0-9a-zA-Z.]+@[a-zA-Z]+\.(com|co\.in)$","micheal.pages@mp.com")
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment