Regex Flashcards

1
Q

_ (underscore)

A

matches a space

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

start of a string

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

$

A

end of a string

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

[ ]

A

matches single character or nesting within a range

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
  • (hyphen)
A

indicates a range of numbers in brackets

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

[^]

A

excludes the characters listed in brackets

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

( ) (parenthesis)

A

used for nesting of search patterns

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

(pipe)

A

provides β€˜OR’ functionality to the query

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

. (period)

A

matches a single character including a space

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

matches 0 or more characters or patterns

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

+

A

matches one or more instances of the character or pattern

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

?

A

matches one or no instances of the character or pattern

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

^$

A

Local originating routes

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

permit ^200_

A

Only routes from AS 200

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

permit _200$

A

Only routes originating from AS 200

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

permit 200

A

Only routes that pass through AS 200

17
Q

permit ^[ 0-9] + [0-9] + [0-9] +?

A

Routes with 3 or fewer AS_PATH entries