RegEx Flashcards

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
Q

Explicit quantifier metacharacter

A

{…}

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

Explicit quantifier example

A

ab{2}c

abbc

27
Q

Explicit set of characters to match metacharacters

A

[…]

28
Q

Explicit set of characters to match example

A

a[bB]c

abc, aBc

29
Q

Logical grouping of part of an expression metacharacters

A

(…)

30
Q

Logical grouping of part of an expression example

A

(abc){2}

abcabc

31
Q

0 or more of previous expression metacharacter

A

*

32
Q

0 or more of previous expression example

A

ab*c

ac, abc, abbc, abbbc

33
Q

1 or more of previous expression metacharacter

A

+

34
Q

1 or more of previous expression example

A

ab+c

abc, abbc, abbbc

35
Q

0 or 1 of previous expression metacharacter

A

?

36
Q

0 or 1 of previous expression example

A

ab?c

ac, abc

37
Q

Escape metacharacter

A

\

38
Q

Escape example

A

a.c

a.c

39
Q

Bell (alarm) character escape

A

\a

40
Q

Backspace (if in []) or word boundary character escape

A

\b

41
Q

Tab character escape

A

\t

42
Q

Carriage return character escape

A

\r

43
Q

Vertical tab character escape

A

\v

44
Q

Form feed character escape

A

\f

45
Q

New line character escape

A

\n

46
Q

Escape character escape

A

\e

47
Q

ASCII octal character escape example

A

\040

48
Q

ASCII hexadecimal character escape example

A

\x20

49
Q

ASCII control character escape example

A

\cC

50
Q

Unicode hexadecimal character escape example

A

\u0020

51
Q

Escape character for any character which is not an escaped character

A

*

52
Q

Character class for any character except \n

A

.

53
Q

Character class for any single character in the specified set of characters

A

[aeiou]

54
Q

Character class for any single character not in the specified set of characters

A

[^aeiou]

55
Q

Character class for specifying a range of contiguous characters

A

Hyphen (-)

[0-9a-fA-F]

56
Q

Character class specified by {name} including unicode groups and block ranges

A

\p{name}

57
Q

Character class specified by {name} excluding those in the named group

A

\P{name}

58
Q

Character class for any word character

A

\w

59
Q

Character class for any nonword character

A

\W

60
Q

Character class for any white-space character

A

\s

61
Q

Character class for any non-white-space character

A

\S

62
Q

Character class for any decimal digit

A

\d

63
Q

Character class for any nondigit

A

\D