<filename>course3/lesson4/find_regex.py
#!/usr/bin/env python3
import re

def position_search():
    sample_text = 'In the 1950s, mathematician <NAME> described automata theory and formal language theory in a set of models using a notation called "regular sets" as a method to do pattern matching. Active usage of this system, called Regular Expressions, started in the 1960s and continued under such pioneers as <NAME>, <NAME>, <NAME>, <NAME>, and <NAME>.'
    m = re.search('Regular Expressions', sample_text)
    return m.start(), m.end()