Thanks for the comments. That was my first time using regular expressions. I can tell they are powerful, but I'm still just getting my feet wet. Also, I like your code. Does the switch statement need a default or will it just break and the while() will run again? The reason I put in all those...