DEV Community

Romero Dias
Romero Dias

Posted on

Regex Tips

Remove duplicate lines

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

Replece with:

$1

Top comments (0)