Common.py
def verse_slice(input_string):
    print(input_string)
    """This is the regex pattern that I hit on during testing for grabbing verse sections. Note that finditer is used
       I have no idea why it works best, but it's the only solution."""
    pattern = '\[.{0,15}:.{0,10}\]'
    match = re.finditer(pattern, input_string)
    print(match)
    return list(map(lambda x: x.group(0), list(match)))
This is the regex pattern that I hit on during testing for grabbing verse sections. Note that finditer is used
       I have no idea why it works best, but it's the only solution.
This is the regex pattern that I hit on during testing for grabbing verse sections. Note that finditer is used
I have no idea why it works best, but it's the only solution.
This is the regex pattern that I hit on during testing for grabbing verse sections . Note that finditer is used I have no idea why it works best but it ' s the only solution .
def verse_slice(input_string):
    print(input_string)
    pattern = '\[.{0,15}:.{0,10}\]'
    match = re.finditer(pattern, input_string)
    print(match)
    return list(map(lambda x: x.group(0), list(match)))
def verse_slice ( input_string ) : print ( input_string ) pattern = '\[.{0,15}:.{0,10}\]' match = re . finditer ( pattern , input_string ) print ( match ) return list ( map ( lambda x : x . group ( 0 ) , list ( match ) ) )
This is the regex pattern that I hit on during testing for grabbing verse sections.
This is the regex pattern that I hit on during testing for grabbing verse sections .
"""This is the regex pattern that I hit on during testing for grabbing verse sections. Note that finditer is used
       I have no idea why it works best, but it's the only solution."""
input_string