@someboddy Do you really think that it's reasonable to require that a string match a regex? In general, it's incredibly trivial to not have a regex match a string. So, my first reaction is that if a function considers it an `Error` for a regex not to match a string, then that's a serious design flaw. Since this is supposed to be effectively implementing a switch statement, are you arguing that the user must make sure that the last pattern accepts everything that missed all of the other patterns/cases?