1) You're missing a ) on line 2.
2) \n matches a newline ($lf) in regex, not a digit as you seem to expect. \d matches a digit.