Mathematica 9 is now available

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

SyntaxLength

FilledSmallSquare SyntaxLength["string"] finds the number of characters starting at the beginning of a string that correspond to syntactically correct input for a single Mathematica expression.

FilledSmallSquare SyntaxLength effectively returns the position of a syntax error, if one exists.

FilledSmallSquare If SyntaxLength returns a position past the end of the string, it indicates that the string is syntactically correct as far as it goes, but needs to be continued in order to correspond to input for a complete Mathematica expression.

FilledSmallSquare See Section 2.9.13.

FilledSmallSquare See also: SyntaxQ, $SyntaxHandler.

FilledSmallSquare New in Version 2.

Further Examples



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.