I want to know if I can use match cases within Python to match within a string - that is, if a string contains the match case. Example:
mystring = "xmas holidays"
match mystring:
case "holidays":
return true
case "workday":
return false
I can see why it wouldn't, since this could potentially match several cases at once, but I wanted to know if it was possible.