7 Python Regex Search Function Coding Exercise
7 Python Regex Search Function Coding Exercise
Can you remove the word "take_out" and print the email address
"[email protected]" ?
#!/usr/bin/python
import re
def regex_processor(email):
# replace '0' with the 'm.start()' and 'm.end()' at the appropriate indices?
if m:
print (email[:0] + email[0:])
else:
print ("No match!!")
Your task is to replace the '?' on the line 8 with the correct function name
( match or search ?) and replace he ? marks on the line 12 with correct match
object function calls (hint: m.end() and m.start() ).
Show Hint