This discussion is archived
1 2 Previous Next 18 Replies Latest reply: Sep 11, 2008 11:07 PM by 800282 Branched to a new discussion. RSS

Remove Duplicates from String Array with Regular Expressions

807589 Newbie
Currently Being Moderated
I 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}
1 2 Previous Next