StartOfLine

StartOfLine

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

Details

  • StartOfLine is taken to occur at the beginning of a string, and immediately after every \n newline in the string.

Examples

Basic Examples  (2)

Split a string at the beginning of a line:

Find how many lines start with "We the People" in the U.S. Constitution:

Wolfram Research (2004), StartOfLine, Wolfram Language function, https://reference.wolfram.com/language/ref/StartOfLine.html.

Text

Wolfram Research (2004), StartOfLine, Wolfram Language function, https://reference.wolfram.com/language/ref/StartOfLine.html.

CMS

Wolfram Language. 2004. "StartOfLine." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/StartOfLine.html.

APA

Wolfram Language. (2004). StartOfLine. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/StartOfLine.html

BibTeX

@misc{reference.wolfram_2024_startofline, author="Wolfram Research", title="{StartOfLine}", year="2004", howpublished="\url{https://reference.wolfram.com/language/ref/StartOfLine.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_startofline, organization={Wolfram Research}, title={StartOfLine}, year={2004}, url={https://reference.wolfram.com/language/ref/StartOfLine.html}, note=[Accessed: 21-November-2024 ]}