Using \d in a regex to match any single digit does not seem to work at all, while explicitly specifying a single digit in the regex string does.