因此,我在 Notepad++ 中打开了一份从 PDF 转换而来的成绩单。
它的布局如下:
00 00 00 01 I have had a very nice day today, i went
to the park to play football
00 00 00 02 It has been a wonderful day.
00 00 00 03 I have rally liked today as it has been
very fun.
从示例文本中可以看出,句子如下。每个条目开头的所有行都以 00 开头,所以我想知道是否有办法在 notepad ++ 中将文本移动到同一行,而无需手动执行所有操作,并且正确行上的单词之间还有一个空格。
我将不胜感激任何帮助
答案1
搜索 → 替换 →
- 找什么:
\R([^0-9]+)
- 用。。。来代替:Space
\1
- 正则表达式搜索模式已选择
- 全部替换按钮。
解释:\R
换行;[^0-9]
除 0-9 之外的所有字符;+
重复\1
- 第一(
组)
字符。