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

Answer:

Here is a regular expression: [ABC]*[CD]

StringABCCBCCCDCDDCCAACCCCCAACAB
Match or
Reject?
Match Match Reject Reject Match Match Reject Reject

Example 1

Regular Expression
(Delimit with quotes)
String
(Delimit with quotes)

What regular expression specifies the set of all alphabetic strings, upper and lower case, at least one char long?

Accepted:

a, b, c,  z, A, B, Z,
aa, ab,aA, aB, aZ, Aa, Ab, Az,
AA, AB, ZZ, aAa, AZR, RATS,
bAtS, AAadusdfEjT

Test your regular expression in the applet:


QUESTION 24:

What is the RE?