you are viewing a single comment's thread
view the rest of the comments
[–] 2 points 3 months ago* (last edited 3 months 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
  • source
  • parent