EndOfLine

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

DetailsDetails

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

ExamplesExamplesopen allclose all

Basic Examples  (2)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]=
Introduced in 2004
(5.1)