将列移动到新行

时间:2014-12-05 16:08:58

标签: notepad++

我有一组看起来像这样的数据:

624 Commemorate your trip to 'Planet Hollywood' with merchandise and movie-themed souvenirs available inside the Planet Hollywood restaurant.
625 Dine on American roadhouse fare in an electric atmosphere filled with movie memorabilia at Downtown Disney West Side.
626 Dine, shop, and discover all that Disney has to offer outside of its four magical parks!
627 Enjoy dinner and a movie at this casual theatre restaurant located in the Downtown Disney Area.   628   Embellish your life with whimsical and enigmatic art, toys and jewelry.

我需要数据看起来像这样:

624 
Commemorate your trip to 'Planet Hollywood' with merchandise and movie-themed souvenirs available inside the Planet Hollywood restaurant.
625 
Dine on American roadhouse fare in an electric atmosphere filled with movie memorabilia at Downtown Disney West Side.
626 
Dine, shop, and discover all that Disney has to offer outside of its four magical parks!
627 
Enjoy dinner and a movie at this casual theatre restaurant located in the Downtown Disney Area. 
628 
Embellish your life with whimsical and enigmatic art, toys and jewelry.

如何使用notepad ++完成此操作?

2 个答案:

答案 0 :(得分:1)

键入 Ctrl + H ,然后

找到:^(\d+)
替换为:$1\n< - 此处根据您的需要添加一个或多个\n

要达到相反的效果,正如评论中所说,只需这样做:

查找内容:^(\d+)\n - 如果您不知道是\R还是\n还是{{},则可以使用\n代替\r 1}}
替换为:\r\n< - 此处用空格替换$1_,我将其用于可见性。

答案 1 :(得分:-1)

我不知道Notepad ++是否具备该功能,但使用Sublime Text更容易。

  1. 如果您没有安装sublime文本,请下载并安装
  2. 在崇高文本窗口中复制并粘贴文本
  3. 将鼠标放在要将列拆分到下一行的第一行
  4. 单击并按住鼠标上的滚轮,将其垂直向下拖动到最后一行。
  5. 此时你应该有一个长的垂直光标,它跨越文本行
  6. 点击键盘上的回车键。
  7. 希望有所帮助