Given a string that may or may not have a platform specific line-ending (\n), I need a regex to, A. add \015\012 if there is no line-ending, B. convert any existing line-ending to the network line-ending, C. add nothing if the correct line-ending is already there?
In reply to regex to add network line-endings if required. by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |