Which one of the following regular expression matches any string containing zero or one p?
A. p+
B. p*
C. P?
D. p#
Answer: Option C
Related Questions on Regular Expressions
A. 1 and 2
B. 2 and 4
C. 1 and 4
D. 2 and 3
A. p+
B. p*
C. P?
D. p#
Answer: Option C
A. 1 and 2
B. 2 and 4
C. 1 and 4
D. 2 and 3
Join The Discussion