Regular expression (Regex) Flashcards
1
Q
What is a regular expression
A
Patterns used to identify a specific set of strings
2
Q
What does () mean
A
Used to identify groups
3
Q
What does * mean
A
Means 0 or more
4
Q
What does + mean
A
Means 1 or more
5
Q
What does ? mean
A
Means one or zero
6
Q
What does | mean
A
Any alternatives
7
Q
How can a language be regular
A
If it can be represented as a regular expression or FSM