PrintableASCIIQ

PrintableASCIIQ[string]

yields True if the string contains only printable ASCII characters, and yields False otherwise.

Details

Examples

open allclose all

Basic Examples  (2)

Check if a single character is a valid ASCII character:

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

Check if a string contains only printable ASCII characters:

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

Scope  (1)

Properties & Relations  (1)

See Also

LetterQ  DigitQ  RemoveDiacritics  Transliterate  URLEncode  ToCharacterCode  CharacterRange

Introduced in 2015
(10.1)