go to previous page   go to home page   go to next page

Answer:

A[B-Y]*Z


Basic Regular Expressions: One or More Instances

Rule 7. ONE or More Instances

The character + in a regular expression means "match the preceding character one or more times". For example A+ matches one or more of character A.

The plus character, used in a regular expression, is called a Kleene plus .

Regular ExpressionMatches
A+ ONE or more 'A'
[0-9]+ ONE or more digits

QUESTION 19:

Consider the regular expression [A-Z]+[aeiou]+[bd]? Which of the following strings match that RE?

StringBeedZZeedDudgreedFLEdKNeedMOONMooo
Match or
Reject?

Recall that ? means to match zero or one.