HW 2

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

1.

the set of all alphabetic strings;


[a-zA-Z]+
2. the set of all lower case alphabetic strings ending in a b;
[a-z]*b
4. the set of all strings from the alphabet a, b such that each a is immediately
preceded by and immediately followed by a b;
(b+(ab+)+)?
5. all strings that start at the beginning of the line with an integer and that end
at the end of the line with a word;
ˆ\d+\b.*\b[a-zA-Z]+$

You might also like