Groups and Ranges Flashcards

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

.

A

Any character except new line (\n)

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

(a|b)

A

a or b

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

(…)

A

Group

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

(?:…)

A

Passive (or non-capturing) group

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

[abc]

A

Range (a or b or c)

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

[^abc]

A

Not a or b or c

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

[a-z]

A

Lower case letter between a and z

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

[A-Z]

A

Upper case letter between A and Z

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

[0-7]

A

Digit between 0 and 7

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

\n

A

nth group/subpattern

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