Closed niklabh closed 3 years ago
To indicate that a pattern should occur a precise number of times, use braces. Putting {4} after an element, for example, requires it to occur exactly four times. It is also possible to specify a range this way: {2,4} means the element must occur at least twice and at most four times.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions