'00'x, and the default value for
end is 'ff'x.
If start is greater than
end, the values wrap from
'ff'x to '00'x.
If specified, start and
end must be single characters.
| Name | Description | Returned sequence |
|---|---|---|
ALNUM | Alphanumeric characters | 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz |
ALPHA | Alphabetic characters | ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz |
BLANK | Space and tab | '09 20'x |
CNTRL | Control characters | '00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 7F'x |
DIGIT | Digits | 0123456789 |
GRAPH | Visible characters | !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_` abcdefghijklmnopqrstuvwxyz{|}~ |
LOWER | Lowercase letters | abcdefghijklmnopqrstuvwxyz |
PRINT | Visible characters and space character | !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_` abcdefghijklmnopqrstuvwxyz{|}~ |
PUNCT | Punctuation characters | !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~ |
SPACE | Whitespace characters | '09 0A 0B 0C 0D 20'x |
UPPER | Uppercase letters | ABCDEFGHIJKLMNOPQRSTUVWXYZ |
XDIGIT | Hexadecimal digits | 0123456789ABCDEFabcdef |
XRANGE("a", "f") --> "abcdef"
XRANGE('03'x, '07'x) --> '0304050607'x
XRANGE(, '04'x) --> '0001020304'x
XRANGE('FE'x, '02'x) --> 'FEFF000102'x
XRANGE("t", "t", "h", "i", "r", "t") --> "thirst"
XRANGE('xdigit') --> "0123456789ABCDEFabcdef"
XRANGE("a", "f", "A", "F", "digit") --> "abcdefABCDEF0123456789"