Your regular expression does not check whether the \015 or the \012 or the \015\012 is really the last thing on the line.
This can be fixed by by anchoring your regular expression to the end of the string:
/(\015|\012|\015\012)\z/
In reply to Re: How to Detect Mixed File Line-Endings
by Corion
in thread How to Detect Mixed File Line-Endings
by paul-s-
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |