Vidyalelo
PHP · Q2

Regular Expressions

Programming · PHP · question 2

Q2

Which one of the following regular expression matches any string containing zero or one p?

A.
p+
B.
p*
C.
P?
Answer
D.
p#

Answer: Option C

Solution

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