「制御文字列」に含まれる文字

正規表現の制御文字列を表す文字クラスの[:cntrl:]に含まれる文字を忘れがちなのでメモ。

10進数 16進数 意味
0 0 Null
1 1 Start of Heading
2 2 Start of Text
3 3 End of Text
4 4 End of Transmission
5 5 Enquiry
6 6 Acknowledge
7 7 Bell
8 8 Backspace
9 9 Horizontal Tabulation
10 0A Line Feed
11 0B Vertical Tabulation
12 0C Form Feed
13 0D Carriage Return
14 0E Shift Out
15 0F Shift In
16 10 Data Link Escape
17 11 Device Control 1
18 12 Device Control 2
19 13 Device Control 3
20 14 Device Control 4
21 15 Negative Acknowledge
22 16 Synchronous Idle
23 17 End of Transmission Block
24 18 Cancel
25 19 End of Medium
26 1A Substitute Character
27 1B Escape
28 1C File Separator
29 1D Group Separator
30 1E Record Separator
31 1F Unit Separator
127 7F Delete

詳説 正規表現 第3版

詳説 正規表現 第3版