What would be a "pythonic" way of expressing regex'es with Python 3.10's (and later) match-case statements (i.e, pattern matc开发者_StackOverflow中文版hing)? It intuitively sounds like a good use case, but I cannot figure out a "clean" way of expressing something like:
s = "ham@spam.com"
match s:
# cases matches s using regex
精彩评论