We help IT Professionals succeed at work.

Find duplicates in string

Zado
Zado asked
on
287 Views
Last Modified: 2012-06-27
Hi,

I've got the string:
123(05)-333(12)-2354(13)-2354(14)-3333(50)
And I need a script to remove duplicated numbers from the string, but with ignoring the brackets. In this case from string above should be removed '-2354(14)'
I know I need to explode the string by '-' first, but what next?

Thanks for any help.
Comment
Watch Question

Top Expert 2007
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Great, thank you.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.