Vidyalelo
Java Programming · Q15

Java Regular Expressions

Programming · Java Programming · question 15

Q15

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

A.
Zero or more occurrences of the preceding character or group
B.
A word boundary
C.
Alternation, allowing a choice between two or more patterns
Answer
D.
A digit

Answer: Option C

Solution

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