DNA is composed of only those 4 nucleotides, so any other values can't occur within the string. Hence the temp value solution works. If not, then you'd have to do the live replace method that your or I proposed. I suspect my solution would be significantly faster, particularly over longer strings, but it's the same idea.
cheers, barneyb On 6/14/05, Jeff Congdon <[EMAIL PROTECTED]> wrote: > Yes sorry, I meant the replace idea outlined in the quoted section of my > email ;) > > The replace idea below will work as long as those temporary values don't > exist anywhere in the original string, which seems a risky assumption. > Not knowing the original values though, I can't speak for that. > > -Jeff -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 50 invites. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209471 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54