in reply to Odd closing brace issue
The following standard quantifiers are recognized:
* Match 0 or more times
+ Match 1 or more times
? Match 1 or 0 times
{n} Match exactly n times
{n,} Match at least n times
{n,m} Match at least n but not more than m times
(If a curly bracket occurs in any other context, it is treated as a regular character. In particular, the lower bound is not optional.)
So in the *Incorrect* regex is valid - match any digit followed by, literally, {1,2 (&&JUMP4{1,2SCOOBY would match).
|
|---|