• flying_sheep@lemmy.ml
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 days 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