Unit 9 - Regular Expressions Flashcards
1
Q
Regex Notation: ∅
A
Empty regex
no word
2
Q
Regex Notation: ε
A
Empty word
the empty word ε
3
Q
Regex Notation: b (if b∈Σ)
A
b
b (i.e., the word of length 1 with just symbol b)
4
Q
Regex Notation: r + s
A
Choice
all words matched by r or by s
5
Q
Regex Notation: r·s
A
Concatenation
all words obtained by concatenating a word matched by r, and a word matched by s
6
Q
Regex Notation: r*
A
Kleene star
all words obtained by concatenating any number of words, provided that each one is matched by r