Which of the following matches X occurs n or more times?
Answer options
A
X{n,}
B
X{n}
C
X{n,m}
D
X+
Correct answer: X{n,}
Explanation
X{n,} matches X repeated n or more times in Java regex.
Correct answer: X{n,}
X{n,} matches X repeated n or more times in Java regex.
PrimerDumps has 1400+ primer questions, 2026 mocks and coding hands-on — all free.