Regex Tips

Romero Dias - Aug 20 '23 - - Dev Community

Remove duplicate lines

(.*)(\r?\n\1)+$

Replece with:

$1

. . . . . . .