What does the regex [A-Z]{0,2,3}\\d+
mean?
Does it match strings like
AAA1234
0000123
AA12345
Thanks
What does the regex [A-Z]{0,2,3}\\d+
mean?
Does it match strings like
AAA1234
0000123
AA12345
Thanks
[A-Z]{0,2,3}\\d+
That looks like a typo.
{}
braces shouldn't have more than two numbers in it.
[A-Z]{0,3}
mean any alphabet between A and Z (capital) can occur 0 to 3 times.
And \d+
means any digit (0-9) can occur 1 or more times.
That is the reason [A-Z]{0,3}\d+
matches AAA1234
, 0000123
and AA12345
Your regex ([A-Z]{2,3}\\d+
) will match