Search for: (.*)\r(.*)\r(.*)\r(.*)\r Replace with: \1\t\2\t\3\t\4\r
Make sure 'Use grep' is checked and run 'Replace all.' On Thu, Oct 28, 2010 at 1:55 PM, direwolf <direwolf.gh...@gmail.com> wrote: > Hi everyone, > > I've got a list of codes in a text file. Each code is a separate > record (on a separate line). > Like this: > 1 > 2 > 3 > 4 > 5 > 6 > 7 > 8 > What I want to do is find and replace so that I have four codes per > record separated by tabs. > Like this: > 1 2 3 4 > 5 6 7 8 > > I'm a grep newb but figured there is a way to do this? > Maybe a two step process to first replace all returns with tabs and > then replace every fourth tab with a return? > > Thanks! > > -- > You received this message because you are subscribed to the > "BBEdit Talk" discussion group on Google Groups. > To post to this group, send email to bbedit@googlegroups.com > To unsubscribe from this group, send email to > bbedit+unsubscr...@googlegroups.com<bbedit%2bunsubscr...@googlegroups.com> > For more options, visit this group at > <http://groups.google.com/group/bbedit?hl=en> > If you have a feature request or would like to report a problem, > please email "supp...@barebones.com" rather than posting to the group. > Follow @bbedit on Twitter: <http://www.twitter.com/bbedit> > -- You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at <http://groups.google.com/group/bbedit?hl=en> If you have a feature request or would like to report a problem, please email "supp...@barebones.com" rather than posting to the group. Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>