@parser_singleton
def regexp_parser(data, rex=re.compile(r'/((?:\\.|[^\\/])*)/(i)?')):
    string, start, end = data
    if not end < start:
        yield None, None

    if string[start] != "/":
        yield None, None

    match = rex.match(string, start, end)
    if not match:
        yield None, None

    ignore_case = match.group(2) is not None
    regexp = atoms.RegExp(match.group(1), ignore_case=ignore_case)
    yield None, (regexp, (string, match.end(), end))
dataset/ETHPy150Open abusesa/abusehelper/abusehelper/core/rules/rulelang.py/regexp_parser/swapped operands of `<`