Example
This input:
ana@example.com
ben@example.com
cara@example.com
gives this output with the settings on this page:
ana@example.com,ben@example.com,cara@example.com Replace line breaks with commas
A line break is not always easy to find and replace. In many editors you must turn on regular expressions and type \n. Here, you paste the text and read the result. Windows (CRLF), Mac and Linux line breaks all work.
Trailing spaces and empty lines are removed, so you do not get a comma at the end or two commas in a row.
Not only for spreadsheets
The text can come from anywhere: a terminal, a log file, an email, a chat or a web page. Any text with one item per line works. If the text has no line breaks, nothing needs to change.
Other things to try
- Pick Comma + space for a list that reads well to people.
- Pick Semicolon for mail tools that separate addresses with semicolons.
- Pick Pipe or Tab for other programs.
- Switch to List to column to go the other way.