Hello, Vasile,
My updated regex ( See the second post, above ) works perfectly well, even if I insert your expression – Mother is home –, in a list !?. For instance, the original text, below :
aaa ccc bbb ddd aaa -- Mother is home – eee ddd aaa fff -- Mother is home – -- Mother is home – ddd ggg hhh -- Mother is home – iii hhh iiiwith the S/R :
SEARCH : (?-s)^(.+\R)(?s)(?=(.+\R)?\1)|^\R
REPLACE : EMPTY
will be changed into :
ccc bbb eee aaa fff ddd ggg -- Mother is home – iii hhh iii=> It did keep all the unique lines AND the last item of all the duplicate lines, whose your string – Mother is home – !
Cheers,
guy038