RegEx Flashcards

(63 cards)

1
Q

Alternation definition

A

Chooses one alternative or the other

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

Bell (alarm) definition

A

Device control code sent to ring a small bell

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

Carriage return definition

A

Returns the position of the cursor to the first position on the same line

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

Vertical tab definition

A

A tab function that moves the cursor up or down 6 spaces

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

Form feed definition

A

Forces the printer to eject the current page and continue printing at the top of another

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

ASCII definition

A

Character encoding standard for electronic communication

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

ASCII pronunciation

A

/‘æski:/

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

Octal definition

A

A base-8 number system using 0 to 7

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

ASCII octal number of digits

A

Up to 3

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

Hexadecimal definition

A

Positional system using base of 16

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

ASCII hexadecimal number of digits

A

2

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

Unicode hexadecimal number of digits

A

4

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

Control character

A

A character such as control-C

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

Word character definition

A

a-z, A-Z, 0-9, _

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

Whitespace character

A

space, tab, newline

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

Decimal digit definition

A

0-9

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

Start of a string metacharacter

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

Start of a string example

A

^abc

abc, abcdefg, abc123

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

End of a string metacharacter

A

$

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

End of a string example

A

abc$

abc, endsinabc, 123abc

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

Any character (except \n)

A

.

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

Any character except \n example

A

a.c

abc, aac, acc, adc, aec

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

Alternation metacharacter

A

|

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

Alternation example

A

bill|ted

ted, bill

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Explicit quantifier metacharacter
{...}
26
Explicit quantifier example
ab{2}c | abbc
27
Explicit set of characters to match metacharacters
[...]
28
Explicit set of characters to match example
a[bB]c | abc, aBc
29
Logical grouping of part of an expression metacharacters
(...)
30
Logical grouping of part of an expression example
(abc){2} | abcabc
31
0 or more of previous expression metacharacter
*
32
0 or more of previous expression example
ab*c | ac, abc, abbc, abbbc
33
1 or more of previous expression metacharacter
+
34
1 or more of previous expression example
ab+c | abc, abbc, abbbc
35
0 or 1 of previous expression metacharacter
?
36
0 or 1 of previous expression example
ab?c | ac, abc
37
Escape metacharacter
\
38
Escape example
a\.c | a.c
39
Bell (alarm) character escape
\a
40
Backspace (if in []) or word boundary character escape
\b
41
Tab character escape
\t
42
Carriage return character escape
\r
43
Vertical tab character escape
\v
44
Form feed character escape
\f
45
New line character escape
\n
46
Escape character escape
\e
47
ASCII octal character escape example
\040
48
ASCII hexadecimal character escape example
\x20
49
ASCII control character escape example
\cC
50
Unicode hexadecimal character escape example
\u0020
51
Escape character for any character which is not an escaped character
\*
52
Character class for any character except \n
.
53
Character class for any single character in the specified set of characters
[aeiou]
54
Character class for any single character not in the specified set of characters
[^aeiou]
55
Character class for specifying a range of contiguous characters
Hyphen (-) | [0-9a-fA-F]
56
Character class specified by {name} including unicode groups and block ranges
\p{name}
57
Character class specified by {name} excluding those in the named group
\P{name}
58
Character class for any word character
\w
59
Character class for any nonword character
\W
60
Character class for any white-space character
\s
61
Character class for any non-white-space character
\S
62
Character class for any decimal digit
\d
63
Character class for any nondigit
\D