You have your statements out of order and that is the source of your confusion.
/.../ - start and end of regular expression \ ( - Match a (. The backwards slash means the ( is NOT a metacharacter. \d\d\d\d - Match 4 digits \) - Match a ). The backwards slash means the ) is NOT a metacharacter.
... View more