StringQ

StringQ[expr]

gives True if expr is a string, and False otherwise.

Examples

open allclose all

Basic Examples  (2)

Test whether "123" is a string:

In[1]:=
Click for copyable input
Out[1]=

Pick out all strings in a list:

In[1]:=
Click for copyable input
Out[1]=

Scope  (2)

Properties & Relations  (3)

See Also

String  StringMatchQ  SameQ

Tutorials

Introduced in 1991
(2.0)