Regular expression syntax
Regex quantifier
Controls allowed repetitions of the preceding atom. Bounds must be valid and lower must not exceed upper.
Formal Syntax & Structure
javascript syntaxjavascript
a* | a+ | a? | a{n,m}Working Example
Example Snippetjavascript
console.log(/a{2,3}/.exec("aaaa")[0]);