Regex search to find and remove consecutive lines which end with same characters Pin

Sean O'Shea 1 Reputation point
2022-11-13T16:16:20.31+00:00

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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.