2 Regular Expression
2 Regular Expression
2 Regular Expression
College of science
Department of Computer Science
Computation
Regular Expression
Lecture four
{m,n} Matches the preceding element at least m and not more than n
times. For example, a{3,5} matches only "aaa", "aaaa", and
"aaaaa".
Formal Definition of Regular
Expression
Say that R is a regular expression if R is
12. The set of strings over {0,1} that have at most one 1
0* | 0* 1 0*
Homework
• (a ᴜ b)* aba
Look Ahead and Look Behind
collectively called "lookaround"