Regular Expressions Flashcards

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

\b

A

Match a word boundary

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

\w

A

Match a word character [A-Za-z_]

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

\W

A

Match a non-word character

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

.

A

Match any character

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

x*

A

Match zero or more occurrences of x

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

x+

A

Match one or more occurrences of x

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

x?

A

Match zero or one occurrences of x

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

\d

A

Match a digit character [0-9]

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

\D

A

Match a non-digit character

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

\s

A

Match a whitespace character

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

(x)

A

Create a match group on x

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

[x]

A

Create a character class containing x

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

[^x]

A

Create a character class excluding x

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

x{n}

A

Match x exactly n times

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

x{n, m}

A

Match x between n and m times

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

x{n,}

A

Match x n or more times