PRODUCTS
Mathematica
Mathematica for Students
Mathematica for the Classroom
grid
Mathematica
web
Mathematica
Mathematica Player
(free download)
Mathematica Player Pro
Wolfram
Workbench
Mathematica
Applications
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
FOR USERS
All User Resources
Product Registration
Technical Support
Customer Service
Developer Support
Does My Site Have a License?
Free Seminars
Certified Training
Custom Group Seminars
Documentation & Examples
Tutorial Screencasts
Video Gallery
Demonstrations Project
Education Portal
Student Resources
COMPANY
About Wolfram Research
News & Events
Wolfram Blog
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
Demonstrations Project
MathWorld
Integrator
Wolfram Functions Site
Wolfram Blog
Mathematica Journal
Wolfram Library Archive
Wolfram
Tones
Wolfram Science
Stephen Wolfram
DOCUMENTATION CENTER SEARCH
Mathematica
>
Core Language
>
String Manipulation
>
String Patterns
>
Mathematica
>
Core Language
>
Rules & Patterns
>
Patterns
>
String Patterns
>
Built-in
Mathematica
Symbol
String Patterns
Working with String Patterns
Tutorials »
|
EndOfLine
StartOfString
StringExpression
See Also »
|
String Patterns
More About »
StartOfLine
StartOfLine
represents the start of a line in a string for purposes of matching in
StringExpression
.
MORE INFORMATION
StartOfLine
is taken to occur at the beginning of a string, and immediately after every
\n
newline in the string.
EXAMPLES
CLOSE ALL
Basic Examples
(2)
Split a string at the beginning of a line:
In[1]:=
Out[1]//InputForm=
Find how many lines start with "We the People" in the U.S. Constitution:
In[1]:=
Out[1]=
SEE ALSO
EndOfLine
StartOfString
StringExpression
TUTORIALS
String Patterns
Working with String Patterns
MORE ABOUT
String Patterns
New in 5.1
© 2008 Wolfram Research, Inc.