Is there a way to match a line break independently of system? i.e. match both \n and \r\n. The only thing I can think of is \r?\n which just feels clunky.
The reason I want to do this is
- if I need to match 2 in a row,
\n\nno longer works and - if I match
\n, then the preceding\rwill still exist and I would have to strip it off or it could lead to problems later