Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Indexing 要在记事本中的每个数字后插入换行符++;(或excel或Word)_Indexing_Insert_Notepad++_Line_Ocr - Fatal编程技术网

Indexing 要在记事本中的每个数字后插入换行符++;(或excel或Word)

Indexing 要在记事本中的每个数字后插入换行符++;(或excel或Word),indexing,insert,notepad++,line,ocr,Indexing,Insert,Notepad++,Line,Ocr,我已经对一本书的索引进行了OCR,除了没有识别出一些换行符之外,它工作得很好。我想扫描大量书籍的索引,因此需要在理想情况下使用记事本++添加换行符 我在“查找并替换”中尝试了以下方法: 查找内容:[0-9]+ 替换为:\r\n 这几乎满足了我的要求,但删除了数字 我想做的更多的是“找到数字并在它们后面插入换行符” 我将非常感谢任何帮助!谢谢大家! 以下是之前的索引示例: Bengali-style baked fish 77 biscuits: fennel seed drop-biscui

我已经对一本书的索引进行了OCR,除了没有识别出一些换行符之外,它工作得很好。我想扫描大量书籍的索引,因此需要在理想情况下使用记事本++添加换行符

我在“查找并替换”中尝试了以下方法:

  • 查找内容:
    [0-9]+
  • 替换为:
    \r\n
这几乎满足了我的要求,但删除了数字

我想做的更多的是“找到数字并在它们后面插入换行符”

我将非常感谢任何帮助!谢谢大家!

以下是之前的索引示例:

Bengali-style baked fish 77 biscuits: fennel seed drop-biscuits 155 bread: naan 129 roti 127 simple layered flat breads 126 broad bean thoran 112 burgers: chicken burger 43
以及我希望如何照顾它:

Bengali-style baked fish 77 
biscuits: fennel seed drop-biscuits 155 
bread: naan 129 
roti 127 
simple layered flat breads 126 
broad bean thoran 112 
burgers: chicken burger 43 
使用记事本++

  • Ctrl+H
  • 查找内容:
    \d+\K
  • 替换为:Windows EOL的
    \n
    \r\n
  • 检查环绕
  • 检查正则表达式
  • 全部替换
说明:

\d+         # 1 or more digits and a space
\K          # forget all we have seen until this position
屏幕截图:

\d+         # 1 or more digits and a space
\K          # forget all we have seen until this position

哦,天哪。它起作用了。它起作用了!!!!!!非常感谢你!这使我的一周很忙。谢谢:-)@kathaurielle:不客气,很高兴这有帮助,请随意标记答案为已接受,