DOCUMENTATION CENTER SEARCH
Mathematica
>
Character Operations
>
Built-in
Mathematica
Symbol
Characters in Strings
Tutorials »
|
DigitQ
UpperCaseQ
LowerCaseQ
CharacterRange
LetterCharacter
StringExpression
See Also »
|
Character Operations
String Manipulation
Testing Expressions
More About »
LetterQ
LetterQ
[
string
]
yields
True
if all the characters in the string are letters, and yields
False
otherwise.
MORE INFORMATION
LetterQ
[
string
]
by default gives
False
if
string
contains any space or punctuation characters.
LetterQ
handles both ordinary and special characters.
LetterQ
treats as letters all special characters explicitly listed as letters in the table in "
Named Characters"
.
In general,
LetterQ
treats as letters all characters that appear as ordinary text in any language.
LetterQ
treats as letters such special characters as
,
,
and
æ
.
LetterQ
does not treat as letters
(
\[EmptySet]
),
(
\[HBar]
),
(
\[Angstrom]
) or
(
\[Sum]
).
EXAMPLES
CLOSE ALL
Basic Examples
(1)
Test whether a character is a letter:
In[1]:=
Out[1]=
In[2]:=
Out[2]=
Scope
(6)
Properties & Relations
(1)
Possible Issues
(1)
Neat Examples
(1)
SEE ALSO
DigitQ
UpperCaseQ
LowerCaseQ
CharacterRange
LetterCharacter
StringExpression
TUTORIALS
Characters in Strings
MORE ABOUT
Character Operations
String Manipulation
Testing Expressions
New in 2 | Last modified in 3
© 2008 Wolfram Research, Inc.