in reply to Checking Input using reg exp.

Okay, I figure out what I need to do, use a subroutine! Now I just gotta figure out this damn syntax error, any ideas on that, am I overlooking something simple?