Vidyalelo
Java Programming · Q12

Java Regular Expressions

Programming · Java Programming · question 12

Q12

In a regular expression, what does the metacharacter `?` represent?

A.
One or more occurrences of the preceding character or group
B.
Zero occurrences of the preceding character or group
C.
A fixed number of occurrences of the preceding character or group
D.
Zero or one occurrence of the preceding character or group
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board