This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Documentation / Mathematica / Built-in Functions / Programming / String Manipulation /

LetterQ

FilledSmallSquare LetterQ[string] yields True if all the characters in the string are letters, and yields False otherwise.

FilledSmallSquare LetterQ[string] by default gives False if string contains any space or punctuation characters.

FilledSmallSquare LetterQ handles both ordinary and special characters.

FilledSmallSquare LetterQ treats as letters all special characters explicitly listed as letters in the table in Section A.12.1.

FilledSmallSquare In general, LetterQ treats as letters all characters that appear as ordinary text in any language.

FilledSmallSquare LetterQ treats as letters such special characters as , , and .

FilledSmallSquare LetterQ does not treat as letters (\[EmptySet]), (\[HBar]), (\[Angstrom]) or (\[Sum]).

FilledSmallSquare See Section 2.8.4.

FilledSmallSquare See also: DigitQ, UpperCaseQ, LowerCaseQ, CharacterRange.

FilledSmallSquare New in Version 2; modified in 3.

Further Examples