Change regular expression in input conversion