• flying_sheep@lemmy.ml
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    15 hours ago

    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