matches without repeated items
Hi,
Please anyone helps me how to use regex for matching items without duplication. Is it can be done? I searched the internet all day, and still cannot find any useful information.
my file:
<bookmark filepath="66286_01.pdf" />
<bookmark filepath="66286_02.pdf" />
<bookmark filepath="66286_01.pdf" />
I tried: \w+\.pdf
The result:
66286_01.pdf
66286_02.pdf
66286_01.pdf
I don't want the second 66286_01.pdf.
Please help.
Thank you very much.
|