in reply to if or switch?

Thanks for all the suggestions. I did not glean the reg expr construct from the switch documentation and clear examples are rare. The other 2 methods are interesting as well. I would not have though of those. Now I have to think about them and make a choice and I hate choosing. :-)