this removed the leading parent, but did not remove the ;xxx-yyy numbers 
at the end of each line or the final trailing paren )

like

(T ACT) (M ATG) (D GAT) (H CAC) (L CTG) (E GAG) (K AAA) (N AAC) (E GAA) 
;1210-1218 )

On 12/6/2010 11:16 AM, Jacob Munson wrote:
> <cfset str = reReplace(str,"^\(","")>
> <cfset str = reReplace(str,";\d+-\d+\)","")>
>
>
> On Mon, Dec 6, 2010 at 12:03 PM, Rick Colman<rcol...@cox.net>  wrote:
>> Been whacking at this one for a while, and it eludes me.
>>
>> ((T ACC) (I ATT) (T ACT) (P CCA) (E GAA) (T ACT) (S TCC) (R CGT) (P CCA)
>> (I ATC) ;0-9
>> (T ACT) (M ATG) (D GAT) (H CAC) (L CTG) (E GAG) (K AAA) (N AAC) (E GAA)
>> ;1210-1218)
>>
>> remove only single leading paren (
>> remove only trailing single paren )
>> leave all others
>>
>> remove ;xxx-yyy at the end of each line (unix line) where xxx is a
>> number and yyy is a number
>>
>> so that the result looks like:
>>
>> (T ACC) (I ATT) (T ACT) (P CCA) (E GAA) (T ACT) (S TCC) (R CGT) (P CCA)
>> (I ATC) (T ACT) (M ATG) (D GAT) (H CAC) (L CTG) (E GAG) (K AAA) (N AAC)
>> (E GAA)
>>
>> You will advance the state of genomic science !!!
>>
>> (yuck ... I hate RE ...)
>>
>> Rick
>>
>>
>>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:339835
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to