28,660 questions
Regex search to find and remove consecutive lines which end with same characters Pin
Sean O'Shea
1
Reputation point
I know that this search:
FIND: ^.{11}(.*)$
REPLACE; $1
. . . will locate the first 11 characters and remove them.
This search:
FIND: ^((.{10}).)(?:\r?\n\2.)+
REPLACE: $1
. . . will locate lines where the first 10 characters are the same and remove them.
But I can't figure out how to structure the search so it checks the text from position 11 to the end of the line, and then checks if the text on the next line from the 11th character to the end of the line is the same.
Windows for business Windows Client for IT Pros User experience Other
Sign in to answer