modify user input for regex and convert it to regex