Find and Replace with Carriage Return 3rd February 2010 at 8:28 am

Something I do on a fairly regular basis is Find and Replace with Carriage Return. This little gem of information is so simple but so useful I thought I’d share it with you. When you have a big list extracted or exported from another application, you will frequently find that you have commas or spaces separating the items in the list. This is a bit annoying when you need to put the items into a vertical list i.e. a carriage return after each entry.

If your text editor supports regular expressions, it’s so easy. Perform a search/replace with your current separating character and replace it with \n . The standard programming representation for Carriage Return is backslash and ‘n’, this is used by the regular expression standard.

2 Responses to “Find and Replace with Carriage Return”

  1. Keep posting stuff like this i really like it

  2. lol some of the remarks bloggers post really are a bit spacey, every so often i think whether these people are actually read through the pieces of article and threads before placing a comment or whether they only skim the blog post title and write the very first opinion that jumps into their brain. either way, it really is helpful to browse sensible commentary every once in awhile in contrast to the identical, old opinion which i very often notice on the web.

Leave a Reply