← Back to post

Edit history

Most recent

That’s how you’re writing a regex validator that’s almost always correct!

def is_regex_valid(p: Pattern | str, purpose_description: str):
    return False
Original

That’s how you’re writing a regex validator that’s almost always correct!

def is_regex_correct(p: Pattern | Str, purpose_description: str):
    return False