101-400 Exam QuestionsBrowse all questions from this exam

101-400 Exam - Question 54


What does the ? symbol within regular expressions represent?

Show Answer
Correct Answer: C

The ? symbol within regular expressions represents matching the preceding qualifier zero or one times. This makes the preceding element optional, allowing it to occur either not at all or exactly once.

Discussion

2 comments
Sign in to comment
ignasiOption: C
Oct 28, 2021

regular expression ? means exactly one occurrence, extended regular expression means zero or one

aries_jamie
Mar 30, 2022

agree with you. * matches up zero or more times the preceding character per documentation.

DuboisNicolasDuclairOption: C
Oct 21, 2023

The ? symbol within regular expressions represents: C. Match the preceding qualifier zero or one time. In regular expressions, the `?` is used to indicate that the preceding character or group is optional, meaning it can appear zero times or once. It allows for matching either a single occurrence or none at all of the preceding element.