我有一组看起来像这样的数据:
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 ++完成此操作?
答案 0 :(得分:1)
键入 Ctrl + H ,然后
找到:^(\d+)
替换为:$1\n
< - 此处根据您的需要添加一个或多个\n
。
要达到相反的效果,正如评论中所说,只需这样做:
查找内容:^(\d+)\n
- 如果您不知道是\R
还是\n
还是{{},则可以使用\n
代替\r
1}}
替换为:\r\n
< - 此处用空格替换$1_
,我将其用于可见性。
答案 1 :(得分:-1)
我不知道Notepad ++是否具备该功能,但使用Sublime Text更容易。
希望有所帮助