Create regex parser for user input