Page about the definition of line boundary (EOL) in regular expression
You can define the begining or the end of a line with boundary matcher
boundary matcher | Description |
---|---|
^ | The beginning of a line |
$ | The end of a line |
The end of line pattern are shorthand that defines the end of line whitespace character
The boundary matcher should be used but for the sake of the example, the below pattern will match an end of line on any system (windows, linux, …)
\r??\n
where: