I need to remove duplicates only from consecutive lines, preferably not
through a macro because it's a few thousand files.
Basically I need to change this:
a = a * 2
a = a * 2
a = a + b
a = a * 2
to this:
a = a * 2
a = a + b
a = a * 2
I tried this as a Unix style find/replace:
Find: ^(.*)(\p\1)+$
Replace: \1
which should work imo, but it returns no matches.
Please let me know if I'm doing anything wrong (I enabled Unix style find).
through a macro because it's a few thousand files.
Basically I need to change this:
a = a * 2
a = a * 2
a = a + b
a = a * 2
to this:
a = a * 2
a = a + b
a = a * 2
I tried this as a Unix style find/replace:
Find: ^(.*)(\p\1)+$
Replace: \1
which should work imo, but it returns no matches.
Please let me know if I'm doing anything wrong (I enabled Unix style find).