5 Replies Latest reply: Nov 4, 2014 1:46 PM by Massimo Grossi RSS

    Remove duplicates from string

    Mehul Thakrar

      I have the following string contained in a field:

      [1,3,4,8,10,27,27,28,29,12]

       

      I'd like to be able to remove all the duplicate values within this string to end up with:

       

      [1,3,4,8,10,27,28,29,12]

       

      The string itself will always be in this format, with numbers ascending but can be of any length and have any number of duplicate values.  Is there a way to achieve this in the script?

       

      Thanks.