| CIT597 Quiz 1 Fall, 2004 |
Name_________________________________________ |
| String | Pattern | Matched by Java's find
method (if more than one match, show the first) |
|---|---|---|
| Sky Captain | [a-z]+ | "ky" |
| CSS and XML | ([A-Za-z]+ )+ | "CSS_and_" |
| CSS and XML | ([A-Za-z] +)+ | "S_" |
| THX1138 | [^0-9]+ | "THX" |
| foo="bar" | ("?)[a-z]+\1 | "foo" |