Vidyalelo
Java Programming · Q5

Java Regular Expressions

Programming · Java Programming · question 5

Q5

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

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

Answer: Option C

Solution

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