Do a global search for a substring that contains a sequence of four digits:
The marked text below shows where the expression gets a match:
The n{X} quantifier matches any string that contains a sequence of X n's.
X must be a number.
The {X} quantifier is supported in all major browsers.