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

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

SyntaxQ

FilledSmallSquare SyntaxQ["string"] returns True if the string corresponds to syntactically correct input for a single Mathematica expression, and returns False otherwise.

FilledSmallSquare If SyntaxQ returns False, you can find the position of a syntax error using SyntaxLength.

FilledSmallSquare See Section 2.9.13.

FilledSmallSquare See also: ToExpression, SyntaxLength, $SyntaxHandler, DelimiterFlashTime.

FilledSmallSquare New in Version 2.

Further Examples