I am trying to extract substrings from a long string in python3
def get_data(text): initials = text.split()[1] names = re.search(initials+\'(.*)EMP\',