Since I don't understand regular expressions and don't see how they are useful in this case I made the mode selection a simple string match
Since I don't understand regular expressions and don't see how they are useful in this case I made the mode selection a simple string match