Unit 9 - Regular Expressions Flashcards

1
Q

Regex Notation: ∅

A

Empty regex

no word

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Regex Notation: ε

A

Empty word

the empty word ε

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Regex Notation: b (if b∈Σ)

A

b

b (i.e., the word of length 1 with just symbol b)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Regex Notation: r + s

A

Choice

all words matched by r or by s

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Regex Notation: r·s

A

Concatenation

all words obtained by concatenating a word matched by r, and a word matched by s

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly