RCS317 Assignment 3 - Validate user input with regex