import re


def get_string_between(text, before, after):
    """
    Get the string between two strings.
    """
    pattern = "%s(.*)%s" % (before, after)
    result = re.search(pattern, text)
    if not result:
        return None
    return result.group(1)