简体   繁体   English

Notepad ++正则表达式从每行的开头删除数字

[英]Notepad++ regular expression to remove numbers from the beginning of each line

I want to remove numbers from the beginning of each line.我想从每一行的开头删除数字。

Sample Lines:样品线:

8399 YOUNG,TEWONIA A \ 18180 
17 ABERNATHY,NED V \ 9045 
627 BARTON,SCOTT D \ 2845 
7 ABBOTT,EWARD JR, A \ 88256 

After remove:删除后:

YOUNG,TEWONIA A \ 18180 
ABERNATHY,NED V \ 9045 
BARTON,SCOTT D \ 2845 
ABBOTT,EWARD JR, A \ 88256 

Thanks in advance!提前致谢!

Simple,简单的,

^\d+\s*

OR或者

^\d+\s+

use the above regex and then replace the match with an empty string.使用上面的正则表达式,然后用空字符串替换匹配项。

DEMO演示

^[0-9]+\s*

试试 this.Replace by empty string

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM