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}(.*)$

. . . will locate the first 11 characters and remove them.

This search:

FIND: ^((.{10}).)(?:\r?\n\2.)+

. . . 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 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
4,735 questions
0 comments No comments
{count} votes