What would be a "pythonic" way of expressing regex'es with Python 3.10's (and later) match-case statements (i.e, pattern matching)? It intuitively sounds like a good use case, but I cannot figure out a "clean" way of expressing something like:
s = "[email protected]"
match s:
# cases matches s using regex
The following works
and results in