JSREF

JavaScript RegExp {X} Quantifier

A global search for a substring that contains a sequence of four digits: