JavaScript
JavaScript regular expression has nothing to repeat
JavaScript rejected the regular expression because a repetition operator like *, +, or ? does not follow a valid token.
JavaScript
JavaScript rejected the regular expression because a repetition operator like *, +, or ? does not follow a valid token.
Observed message
SyntaxError: nothing to repeat
Why it happens
How to fix it
Official reference
MDN: SyntaxError: nothing to repeatRelated errors
Explore more