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):

Wolfram Research (1996), CharacterRange, Wolfram Language function, https://reference.wolfram.com/language/ref/CharacterRange.html (updated 2015).

Text

Wolfram Research (1996), CharacterRange, Wolfram Language function, https://reference.wolfram.com/language/ref/CharacterRange.html (updated 2015).

BibTeX

@misc{reference.wolfram_2021_characterrange, author="Wolfram Research", title="{CharacterRange}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/CharacterRange.html}", note=[Accessed: 17-October-2021 ]}

BibLaTeX

@online{reference.wolfram_2021_characterrange, organization={Wolfram Research}, title={CharacterRange}, year={2015}, url={https://reference.wolfram.com/language/ref/CharacterRange.html}, note=[Accessed: 17-October-2021 ]}

CMS

Wolfram Language. 1996. "CharacterRange." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2015. https://reference.wolfram.com/language/ref/CharacterRange.html.

APA

Wolfram Language. (1996). CharacterRange. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CharacterRange.html