Regular expression (Regex) Flashcards

1
Q

What is a regular expression

A

Patterns used to identify a specific set of strings

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

What does () mean

A

Used to identify groups

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

What does * mean

A

Means 0 or more

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

What does + mean

A

Means 1 or more

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

What does ? mean

A

Means one or zero

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

What does | mean

A

Any alternatives

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

How can a language be regular

A

If it can be represented as a regular expression or FSM

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