A[B-Y]*Z
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 Expression | Matches |
|---|---|
A+ | ONE or more 'A' |
[0-9]+ | ONE or more digits |
Consider the regular expression [A-Z]+[aeiou]+[bd]?
Which of the following strings match that RE?
Recall that ? means to match zero or one.