loop list=yourtext delimiter=chr(10) index = i rereplace(i, "(<b>|<i>)+(.?)(</b>|</i>)+.*", "\2") /loop
Not tested, and there is probably a better way. If this were brought up on CF-RegEx, I think I can guarantee a lively (and nostalgic) discussion of CF5 workarounds. --Ben "the out-of-practice RegEx Ninja" Doom Jim McAtee wrote: > I need to run this on our CF5 server: I have some large text fields > containing HTML, most of which have some variation of the following HTML > snippet at the beginning: > > <b><i>Some text</i></b> More text and HTML follows... > <i><b>Some more text</i></b> More text and HTML follows... > <i><b>Yet some more text</b></i> More text and HTML follows... > > I need a regex that will let me extract and remove the leading text so > that it can be stored in a separate column. > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288911 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

