EndOfLine

EndOfLine

represents the end of a line in a string for purposes of matching in StringExpression.

Details

  • EndOfLine is taken to occur at the end of a string, and immediately before every \n newline in the string.

Examples

Basic Examples  (2)

Split a string at the end of a line:

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

Find how many paragraphs are in the U.S. Constitution:

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

See Also

StartOfLine  EndOfString  StringExpression

Tutorials

Introduced in 2004
(5.1)