CharacterRange

CharacterRange["c1","c2"]

yields a list of the characters in the range from "c1" to "c2".

CharacterRange[n1,n2]

yields a list of the characters with character codes in the range n1 to n2.

Details

Examples

open allclose all

Basic Examples  (2)

Letters a through z:

Characters with a range of character codes:

Scope  (4)

Letters A through Z:

Digits 0 through 9, as strings:

Greek alphabet (including ς):

Printable ASCII characters:

Applications  (5)

Give letters as labels:

Find sequences of uppercase letters:

Replace every letter with X:

Make random 5-letter "words":

Count the number of occurrences of letters az:

Properties & Relations  (1)

Possible Issues  (1)

Not all letters of all types exist as a contiguous block in character space:

Neat Examples  (1)

A block of character space (the detailed output depends on the fonts that are loaded):

Introduced in 1996
 (3.0)
 |
Updated in 2015
 (10.1)