Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Core Language > String Manipulation > String Patterns > EndOfLine >
Mathematica > Core Language > Rules & Patterns > Patterns > String Patterns > EndOfLine >

EndOfLine

EndOfLine
represents the end of a line in a string for purposes of matching in StringExpression.
  • EndOfLine is taken to occur at the end of a string, and immediately before every newline in the string.
Split a string at the end of a line:
Find how many paragraphs are in the U.S. Constitution:
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]=
New in 5.1
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF