start of regex matching for user entry