This is a utility I wrote that comes in handy every now and then, so I thought I would share it with you. It allows you to replaces all the end of line characters in the given text with whatever you define. I often use this to format text for the web by replacing EOLs with break elements. For example, suppose we have this string:
We can use this utility to replace the EOLs with “, ” to get:
"foo, bar, zoo"
Replace EOL characters with: