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

Answer:

A{0,5}Z

In X{n,m} the n can be zero, specifying a minimum of zero matches for subexpression X.


At least n Times: {n,}

To ask for a match with subexpression X at least n times, use

X{n,}

(Notice that the comma is immediately followed by the right brace.) For example, this Rats!{2,} matches

Rats!!       Rats!!!!      Rats!!!!!!

but not

Rats         Rats!

QUESTION 20:

Write the expression that matches two or more groups of Rats! such as Rats! Rats! or Rats! Rats! Rats! Rats!