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


open allclose all

Basic Examples  (2)

Test whether "123" is a string:

Pick out all strings in a list:

Scope  (2)

StringQ works on strings with internal formatting:

StringQ works on any sequence of ordinary and special characters:

Properties & Relations  (3)

All strings have head String:

Use ToString to convert an expression to a string:

Use StringMatchQ to test whether a string pattern matches a particular string:

Introduced in 1991