Just add a space checker inside the '))', then, something like this:

clean = reReplace(replace(reReplace(x, "\s*;\d+-\d+", "", "all"), "((", 
"(", "all"), ")\s*)", ")", "all")

----------------------------------------

From: "Rick Colman" <rcol...@cox.net>
Sent: Monday, December 06, 2010 3:28 PM
To: "cf-talk" <cf-talk@houseoffusion.com>
Subject: Re: Monster Regex

this mostly worked, but did not remove one of the last trailing double ))

results like:

(T ACT) (N AAC) (D GAT) (T ACT) (A GCT) (T ACT) (M ATG) (D GAT) (H CAC) 
(L CTG) (E GAG) (K AAA) (N AAC) (E GAA) )

On 12/6/2010 11:26 AM, Jason Fisher wrote:
> clean = replaceList(reReplace(x, "\s*;\d+-\d+", "", "all"), "((,))",
> "(,)")



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339837
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to