删除每行开头的行号 [英] Remove line numbers at the start of each line
本文介绍了删除每行开头的行号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的文本文件中每一行的开头都有数字,格式如下:
I have numbers at the start of each line in my text file in the following format :
1: text written ....
2: text written ....
最多持续 973 行.
我想删除任何后面有空格和冒号的起始数字......如何在 Notepad++ 中使用正则表达式?
which continues upto 973 lines.
I want to delete any starting numbers with a space and a colon after it ...
How do I do it using regex in Notepad++ ?
推荐答案
你可以使用这个模式:
^\d+\s:
如果你可以像这样在它后面有多个空格:
If you can possibly have more than one space after it like this:
1 :
10 :
100 :
使用这种模式:
^\d+\s+:
确保您已环绕检查:
Make sure you have Wrap around checked:
这篇关于删除每行开头的行号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文