Regex Symbols Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What does ^ represent (Regex)?

A

Start of a string

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

What does $ represent (Regex)?

A

End of a string

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

What does {…} represent (Regex)?

A

Quantifier notation.

E.g “^[A-Z]*{12}$” requires 12 characters

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

What does . represent (Regex)?

A

Any character

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

What does | represent (Regex)?

A

Or

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

What does * represent (Regex)?

A

0 or more of previous character

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

What does + represent (Regex)?

A

1 or more of previous character

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

What does ? represent (Regex)?

A

0 or 1 of previous character

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

What does […] represent (Regex)?

A

Explicit set of characters

E.g “^[A-Z]{2}$”

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

What does \ represent (Regex)?

A

Makes next character literal instead of special.

E.g * means it will look for “*”

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