Examveda

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

D. A digit

Answer: Option C


This Question Belongs to Java Program >> Regular Expressions In Java

Join The Discussion

Related Questions on Regular Expressions in Java