Regular Expressions Flashcards
1
Q
Regex metacharacter for 0 or more repetitions
A
a*
2
Q
Regex metacharacter for 1 or more repetitions
A
a+
3
Q
Regex metacharacter for 0 or 1 repetition
A
? (eg. a?)
4
Q
Regex metacharacter for βorβ
A
a | b
5
Q
Regex metacharacter for any character in a list of characters
A
[] (eg. [abc] allows a, b, or c)
6
Q
Regex metacharacter for any character that is not in a list of characters
A
[^] (eg. [^abc] allows anything except a, b, or c)
7
Q
Regex metacharacter for any character that is in a range of characters
A
[x-y] (eg. [a-z] allows any character from a to z)