[thelist] Regex remove repeats
Shaun Clements
ShaunC at relyant.co.za
Wed Jan 26 05:49:24 CST 2005
What language would you want to use to resolve the problem.
I can think of VB script, and PHP that would both do the same trick
Kind Regards,
Shaun Clements
-----Original Message-----
From: fstorr [mailto:fffrancis at fstorr.demon.co.uk]
Sent: 26 January 2005 01:02 PM
To: Evolt
Subject: [thelist] Regex remove repeats
Hi all
I've got a large amount of repeating data that I need to strip down so
that there's only one instance of each name. For example, I've got:
ac/dc,ac/dc,ac/dc,ac/dc,david bowie,david bowie,dixie chicks,dixie
chicks,black sabbath,zz top,zz top,zz top,zz top
I'm stuck on writing a regex that is going to lok ahead to see if the
next item in the comma separated list is the same as the last and, if it
is, to remove it.
Any help greatly appreciated.
Regards
F
--
* * Please support the community that supports you. * *
http://evolt.org/help_support_evolt/
For unsubscribe and other options, including the Tip Harvester
and archives of thelist go to: http://lists.evolt.org
Workers of the Web, evolt !
Subject to www.relyant.co.za/edisclaim.htm
More information about the thelist
mailing list