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  (3)

Letters a through z:

Characters with a range of character codes:

Range of emojis:

Scope  (5)

Letters A through Z:

Digits 0 through 9, as strings:

Greek alphabet (including ς):

The character between Ρ and Σ is reserved and presently unused by the Unicode standard:

Printable ASCII characters:

A selected range of emojis:

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  (2)

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

All permutations of the flag emojis:

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

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

BibTeX

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

BibLaTeX

@online{reference.wolfram_2024_characterrange, organization={Wolfram Research}, title={CharacterRange}, year={2015}, url={https://reference.wolfram.com/language/ref/CharacterRange.html}, note=[Accessed: 21-November-2024 ]}