in reply to Re: How to Detect Mixed File Line-Endings
in thread How to Detect Mixed File Line-Endings
In the interest of a longer match first, I think OP should change the regex to test for CRLF first followed by either of CR or LF.
m!\015\012|\012|\015!