I used Geany under Windows at this time.
Problem to be solved was:
Eliminate to start numbering from the source code taken from the Internet.
Use keys CTR + H to make replace the text with regular expressions and check to Use regular expressions from the dialog.
For this we use the combination ^[0-9]means the beginning of a row and numbers and press In Document button.
See that in the image below:
Here are the results presented in the following image: