- Joined
- Dec 20, 2015
- Messages
- 2
- Reaction score
- 0
Hi, I'm fairly new to python and am having an issue with with syntax. My code is:
I'm receiving the error:
I'm not quite sure what it is I've done wrong.
Python version is 2.7.9
Code:
# CREATE EMAIL REGEX
email.Regex = re.compile(r'''(
[a-zA-Z0-9._%+-]+. #username
@ #@ symbol
[a-zA-Z0-9._%+-]+. #domain name
(\.[a-zA-Z]{2,4}. # dot something
)''', re.VERBOSE)
I'm receiving the error:
Code:
line 28
emailRegex = re.compile(r'''(
^
SyntaxError: invalid syntax
Python version is 2.7.9
Last edited: