The beginning of a line
In most systems, the end of a line is signaled by '\n'
, '\r'
or '\r\n'
.
However, there is no explicit signal for the start of a line. There is a notion of a line starting immediately after the end of line characters; however, this does not account for the first line of a stream which is not preceded by these symbols.
This is especially important when considering regular expressions which can be used to match characters or sequences at the start of a line.