regex - Regular Expressions in Notepad++ starting with text and ending with incremental number -


i'm trying understand i'm reading tutorials , apply i'm doing.

i have file lines of text like:

line1blahblahblahblah line2blahblahblahblah ... line10blahblahblahblah 

i want go in , remove line , number after (which incremented 1-1000 each line) , replace new text leaving text after in tact.

can explain how , explain regex expression?

search

^line\d+ 

and replace empty string.

explanation: ^ matches begining of line, line matches literal character sequence, , \d matches digit character. + after \d makes match 1 or more digits characters.

your notepad++ search panel should this: enter image description here


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -