Adam
Adam

Reputation: 13

How to Merge each 28 lines into 1 line on notepad++ from 1 million lines?

Is there any way of doing this, I know there are regex codes but I seem to can not find the right one...

It stars from

<tr>
<td>28 lines in between</td>
</tr>

Upvotes: 1

Views: 573

Answers (1)

Lars Fischer
Lars Fischer

Reputation: 10149

Do a regular expression find/replace like this:

  • Open Replace Dialog
  • Find What: (<td>.*)\R(.*)
  • Replace With: \1 \2
  • check regular expression
  • be sure to have '. matches newline` not checken
  • click Replace All
  • wait about a minute (depends on your CPU), now the first two lines are merged in every <td>
  • click Replace All 26 more times.

Upvotes: 1

Related Questions