2014-12-05 49 views
0

我有数据,一组是这样的:移动列到新行

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. 

我怎么可以这样使用完成记事本+ +?

回答

-1

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

  1. 下载并安装崇高的文本,如果你没有安装它
  2. 复制和
  3. 的地方,你的鼠标粘贴文本的崇高文本窗口中你想上哪儿列打破第一线下一行
  4. 单击并按住鼠标上的滚轮并将其垂直拖至最后一行。
  5. 在这一点上,你应该有一个很长的垂直光标,可以切换文本行
  6. 按下键盘上的回车键。

希望帮助

1

类型按Ctrl + H^,然后

查找内容:^(\d+)
替换为:$1\n < - 在这里添加一个或多个\n根据的你想要结果。

为了达到相反的,如问评论,只要做到这一点:

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

+0

感谢您的帮助M42 – jjulk 2014-12-05 18:14:45

+0

有没有办法实现与我所问的相反的方式? – jjulk 2014-12-05 18:21:40

+0

@jjulk:看我的编辑。 – Toto 2014-12-05 18:56:27