On Jul 8, 2012, at 6:59 AM, Mosby wrote: > I have data that looks similar to this... > > 75092 Sherman 1811 Whao > 75090 Sherman . at. 8am > 3244 Dripping Springs Rd > 903-647-3292 veryt > 75092 Sherman 3204 M > 75409 Anna Tooehold item > > There are tabs after the zip codes. > > I want to skip the zip codes and only find the lines that do not begin with a > zip code. Once those lines are located I want to remove the return at the > end of the previous line and replace it with a space. Every GREP pattern I > have tried to use always finds the zip code as well. There are tabs only > after the zip codes, no tabs are found on the other lines.
I think you want to search for \r([^\t\r]*\r) and replace with " \1" without the quotes, but with the leading space. The search is for a line which does not have a tab or return in it but the find includes the previous line's return so that you can replace without that return. A possible problem is the above doesn't merge multiple lines which seems to be necessary in the provided example. So, just run it twice. -- David Kelly N4HHE, [email protected] ======================================================================== Whom computers would destroy, they must first drive mad. -- 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 [email protected] To unsubscribe from this group, send email to [email protected] 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 "[email protected]" rather than posting to the group. Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
