Welcome ,
here's the text file
Soma, ID 6588, 1988
Lara, ID 4652, 1995
John, ID 1098, 1987
Soma, ID 7898, 1998
John, ID 1024, 1996
i want to delete any line that starts with a duplicated word before the first comma .
so the text will be :
Soma, ID 6588, 1988
Lara, ID 4652, 1995
John, ID 1024, 1996
the order is not necessary.
any ideas ?
using : notepad++ , vb.net .
No need of VB.net, regular expression can do this.
(^[^,]+).+\r\n((.|\r\n)+)\1
\2\1