ExamGecko
Question list
Search
Search

Related questions











Question 276 - 200-201 discussion

Report
Export

What matches the regular expression c(rgr)+e?

A.

crgrrgre

Answers
A.

crgrrgre

B.

np+e

Answers
B.

np+e

C.

c(rgr)e

Answers
C.

c(rgr)e

D.

ce

Answers
D.

ce

Suggested answer: A

Explanation:

The regular expressionc(rgr)+ematches strings where ''rgr'' occurs one or more times between ''c'' and ''e''. The string ''crgrrgre'' fits this pattern as it has the sequence ''rgr'' repeated twice between ''c'' and ''e''.The plus sign (+) in the regular expression indicates that the preceding element must appear one or more times for a match to occur

asked 07/10/2024
Glen Teis
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first