Thanks, Claude!  I'll check it out!

Rick

> -----Original Message-----
> From: Claude Schneegans [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 12, 2007 3:10 PM
> To: CF-Talk
> Subject: Re: How to write this regex?
> 
>  >>Wow... pretty complicated.
> 
> Ok, then try this:
> <CFSET myString='Some text here,<b style="color:red;"> some text in
> bold</b> and some othetext at the end'>
> <CF_REextract
>     INPUTMODE     = "variable"
>     INPUT         = "myString"
>     RE1         = "^|<|>"
>     RE2         = "<|>|$"
>     OUTPUTMODE     = "query"
>   RECYCLE="yes"
>     >
> <CFSET finalString = "">
> <CFLOOP QUERY="REextract">
>   <CFIF String1 NEQ "<">
>     <CFSET string2 = Replace(string2, " ", "&nbsp;", "all")>
>     <CFSET finalString = finalString & Replace(string2, " ", "&nbsp;",
> "all")>
>   <CFELSE>
>     <CFSET finalString = finalString & string1 & string2 & string3>
>   </CFIF>
> </CFLOOP>
> <CFOUTPUT>#HTMLEditFormat(finalString)#</CFOUTPUT>
> 
> --
> _______________________________________
> REUSE CODE! Use custom tags;
> See http://www.contentbox.com/claude/customtags/tagstore.cfm
> (Please send any spam to this address: [EMAIL PROTECTED])
> Thanks.
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290997
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to