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:
Comments
Post a Comment