-2

I have tons of addresses in a text file:

156-20 Riverside Drive W. Apt. 16c 
New York, NY 10032

And I want to convert each of them to be in a single line:

156-20 Riverside Drive W. Apt. 16c New York, NY 10032
Jonathan Nixon
  • 4,940
  • 5
  • 39
  • 53
user3680453
  • 11
  • 1
  • 1
  • Your addresses have multiple lines? – Ivan Cachicatari May 27 '14 at 15:35
  • http://screenshu.com/static/uploads/temporary/v2/id/ve/er7ayn.jpg Look SS. Yes, first line:156-20 Riverside Drive W. Apt. 16c secound line: New York, NY 10032 All must be on first line: 156-20 Riverside Drive W. Apt. 16c New York, NY 10032(like this) – user3680453 May 27 '14 at 15:41
  • [Try this](http://stackoverflow.com/questions/17735289/delete-every-other-line-in-notepad) – TheNorthWes May 27 '14 at 15:46

1 Answers1

1

You can use regular expression replace:

Find:

([0-9]+[^\n]+)\r\n([^\n]+)

Replace with:

\1 \2

Be careful to replace, make a backup before run replace.

enter image description here

Ivan Cachicatari
  • 4,212
  • 2
  • 21
  • 41