Here is a regular expression: [ABC]*[CD]
String | ABC | CBCC | CDC | DD | CCAAC | CCCC | AA | CAB |
---|---|---|---|---|---|---|---|---|
Match or Reject? |
Match | Match | Reject | Reject | Match | Match | Reject | Reject |
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:
What is the RE?