Removing line numbers at the beginning of each line

I have numbers at the beginning of each line in a text file in the following format:

1: text written .... 2: text written .... 

which lasts up to 973 lines.
I want to remove any seed with a space and a colon after it ... How can I do this with a regex in Notepad ++?

+4
source share
2 answers

You can use this template:

 ^\d+\s: 

If you can have a few spaces after this:

 1 : 10 : 100 : 

Use this template:

 ^\d+\s+: 

Make sure you have Wrap around checked:
enter image description here

+6
source

try this it should work

 ^\d+(?:\.\d+)?%$ 
0
source

Source: https://habr.com/ru/post/1489012/


All Articles