Remove Duplicates from String Array with Regular Expressions
807589Sep 10 2008 — edited Sep 12 2008I want to be able to use the Java regular expressions to eliminate duplicates from a string array. I also need to retain the order of the items.
For example:
(1,1,1,5,5,3)
Should return
{1,5,3}