rereplace(string, "^(\*)\1$", "\1"); Should do it, but only if it /is/ passed twice.
One wonders why you don't fix the JS so it isn't doubled.... -- Ben Doom Programmer & General Lackey Moonbow Software, Inc : -----Original Message----- : From: FlashGuy [mailto:[EMAIL PROTECTED] : Sent: Tuesday, March 18, 2003 8:59 AM : To: CF-Talk : Subject: Stripping from variable : : : Hi, : : I have a variable called "file" which is being passed to my : template via JS. : : The output always gets duplicated. : : file = test2test2 : : -OR- : : file = cubacuba : : How can I ouput just one occurrence? Is there some sort of : "match" function? : : : : file = cuba : : : : : --------------------------------------------------- : Colonel Nathan R. Jessop : Commanding Officer : Marine Ground Forces : Guatanamo Bay, Cuba : --------------------------------------------------- : : : : ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4