What you could do is to copy / paste the search results into a new Notepad++ document. Then you do a search and replace with regular expressions. You search for something like: \s*Line \d+:\s and replace with nothing. Don't forget to check the regular expression option.
There is a manual approach which i used to do before learning about regex, and that is in notepad++ you can do column select by leaving your cursor at the beginning of the document, scroll to the end of the document, hold Alt+Shift while you click on the column position you'd like to eliminate.
You'll be able to select all the line number prefixes this way, after which you just press delete.
发布评论
评论(3)
在将搜索结果粘贴到单词 doc 中之前,您可以使用与此模式匹配的正则表达式执行“查找和替换”;
只需用空字符串替换匹配项 - 这将从每行中删除行号前缀。
Before pasting the search results into the word doc, you could do a "Find and Replace" using regex matching with this pattern;
Just replace matches with an empty string - that will remove the line number prefixes from every line.
您可以做的是将搜索结果复制/粘贴到新的 Notepad++ 文档中。然后进行搜索并用正则表达式替换。您搜索类似以下内容:
\s*行\d+:\s
并替换为任何内容。不要忘记检查正则表达式选项。
What you could do is to copy / paste the search results into a new Notepad++ document. Then you do a search and replace with regular expressions. You search for something like:
\s*Line \d+:\s
and replace with nothing. Don't forget to check the regular expression option.
在学习正则表达式之前,我曾经使用过一种手动方法,那就是在记事本++中,您可以通过将光标留在文档的开头,滚动到文档的末尾,按住 Alt+ 来进行列选择单击要消除的列位置时按住 Shift。
您可以通过这种方式选择所有行号前缀,然后只需按删除即可。
There is a manual approach which i used to do before learning about regex, and that is in notepad++ you can do column select by leaving your cursor at the beginning of the document, scroll to the end of the document, hold
Alt+Shift
while you click on the column position you'd like to eliminate.You'll be able to select all the line number prefixes this way, after which you just press delete.