Reverse - Special characters and character classes Flashcards

1
Q

Matches any single character except the newline character.

A

.

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

The bracket expression.

A

[…]

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

The negated bracket expression.

A

[^…]

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

Word character Equivalent to [A-Za-z0-9_]

A

\w

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

Non-word characterEquivalent to [^A-Za-Non-word characterEquivalent to [^A-Za-z0-9_]

A

\W

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

Digit characterEquivalent to [0-9]

A

\d

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

Non-digit characterEquivalent to [^0-9]

A

\D

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

Whitespace characterEquivalent to [\f\n\r\t\v\u00A0\u2028\u2029] (\u00A0 means “no-break space”, \u2028 means “line separator”, \u2029 means “paragraph separator”)

A

\s

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

Non-whitespace characterEquivalent to [^\f\n\r\t\v\u00A0\u2028\u2029]

A

\S

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

Word Boundary

Backspace (\x08)

A

\b

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

Form-feed (\x0C)

A

\f

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

Linefeed or newline (\x0A)

A

\n

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

Carriage return (\x0D)

A

\r

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

Tab (\x09)

A

\t

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

Vertical tab (\x0B)

A

\v

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

Null character (\x00)

A

\0

17
Q

Character with hexadecimal code hh.

A

\xhh

18
Q

Character with hexadecimal code hhhh.

A

\uhhhh