2014-12-05 97 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