表 A-2 は、正規表現の標準エラーメッセージを、各正規表現エラーに関連付けられたメッセージ番号と共にリストします。
表 A–2 正規表現の標準メッセージ
番号 |
使用すべき標準メッセージ |
使用すべきでないメッセージ |
---|---|---|
11 |
Specify a range end point that is less than 256. |
Range end point too large. |
16 |
The character or characters between \{ and \} must be numeric. |
Bad number. |
25 |
Specify a \digit between 1 and 9 that is not greater than the number of subpatterns. |
\digit out of range. |
36 |
A delimiter is not correct or is missing. |
Illegal or missing delimiter. |
41 |
There is no remembered search string. |
No remembered search string. |
42 |
There is a missing \( or \). |
\(\) imbalance. |
43 |
Do not use \( more than 9 times. |
Too many \(. |
44 |
Do not specify more than 2 numbers between \{ and \}. |
More than two numbers given in \{ and \}. |
45 |
An opening \{ must have a closing \}. |
} expected after \. |
46 |
The first number cannot exceed the second number between \{ and \}. |
First number exceeds second in \{ and \}. |
48 |
Specify a valid end point to the range. |
Invalid end point in range expression. |
49 |
For each [ there must be a ]. |
[ ] imbalance. |
50 |
The regular expression is too large for internal memory storage. Simplify the regular expression. |
Regular expression overflow. |