Regular Expression to match cross platform newline characters
Regular Expression to match cross platform newline characters Question: My program can accept data that has newline characters of n, rn or r (eg Unix, PC or Mac styles) What is the best way to construct a regular expression that will match whatever the encoding is? Alternatively, I could use universal_newline support on input, but …