Isn't that always going to match \012 in preference to \012\015?
Also, from the way I read the OP, they are only interested in fixing line-endings; ie. those at the end of the string rather than any embedded, but I could be wrong on that.
In reply to Re^4: regex to add network line-endings if required.
by BrowserUk
in thread regex to add network line-endings if required.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |