Match Flashcards

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

Match multiple ‘e’ s in a row:

The fat cat ran down the street.
It was searching for a mouse to eat.

A

e+

This matches ‘e’ or more than one tokens (token is e)

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

Match ‘e’ and if there is an ‘a’ match that:

The fat cat ran down the street.
It was searching for a mouse to eat.

A

ea?
Matches ‘e’ then prints any other options with ‘ea’
HINT: first character after ‘?’ is optional

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

Match 0 or more ‘re’:

The fat cat ran down the street.
It was searching for a mouse to eat.

A

re*

Matches the ‘r’ and as many ‘e’s that follow the ‘r’ if not it matches only ‘r’

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

Match as many words that end in ‘at’

The fat cat ran down the street.
It was searching for a mouse to eat.

A

.at

Matches: fat cat eat

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

match all .

The fat cat ran down the street.
It was searching for a mouse to eat.

A

.
Matches the . after street
. after eat

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

Match ant character that comes before the period:

The fat cat ran down the street.
It was searching for a mouse to eat.

A

..

t. = street.
t. = eat.

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

Match every word character

The fat cat ran down the street.
It was searching for a mouse to eat.

A

\w

Matches every word

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

Match any space:

The fat cat ran down the street.
It was searching for a mouse to eat.

A

\s

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

Match any words that’s over 4 characters:

The fat cat ran down the street.
It was searching for a mouse to eat.

A

\w{4}
\w{4,} matches 4 or more
\w{4,5} matches any characters 4 or 5 characters long

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

Match any 3 character words that end in ‘at’

A

[fc]at

fat
cat

[a-zA-Z]at
fat
cat
eat

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

Match any 3 character words that end in ‘at’ but only start with letters between a-f

The fat cat ran down the street.
It was searching for a mouse to eat.

A

[a-f]at

cat

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

Match lower and uppercase tT of word ‘the’

The fat cat ran down the street.
It was searching for a mouse to eat.

A

(t|T)he

The
the

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

Match lower and uppercase tT letters and word ‘the’

The fat cat ran down the street.
It was searching for a mouse to eat.

A

t|The

The
t end of fat
t end of cat
t start of the 
ts in street 
t in It 
t in to
t at the end of eat
How well did you know this?
1
Not at all
2
3
4
5
Perfectly