# Is your regex perfectly correct yet still not working?
# You may be using re.match() instead of re.search()
# Difference between match() and search():
# -> Match: Only checks if the RE matches at the beginning of the string
# -> Search: Scan forward through the string for a match
# | Wrong |
print(re.match('super', 'superstition').span())
# -> (0, 5)
print(re.match('super', 'insuperable'))
# -> None
# | Right |
print(re.search('super', 'superstition').span())
# -> (0, 5)
print(re.search('super', 'insuperable').span())
# -> (2, 7)