Regular Expression Flashcards

1
Q

regex chars

match any single character

A

.

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

regex chars

match an optional item only once

A

?

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

regex chars

match 0 to n chars in string

A

*

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

regex chars

items MUST be matched at lease once but can be matched more

A

+

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

regex chars

match # of times

A

#

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

regex chars

match # of times or more

A

,

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

regex chars

match between the first and second number

A

,

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

regex chars

words that start with what comes after

A

<

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

regex chars

words that start with what comes after

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

regex chars

words that end with what comes after

A

>

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

regex chars

words that end with what comes after

A

$

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

regex chars

words that contain either ‘a’ or ‘A’

A

[aA]

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

regex chars

words that do NOT contain the letter

A

[^o]

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