Cool, you can actually do it in one statement, and place the result 
pattern in a variable for (relative) ease of reading:

<cfset block = '[quote name="foo"]Quoted text[/quote]'>
<cfset output = "<b>\1 wrote:</b><blockquote>\2</blockquote>">
<cfoutput>
#rereplace(block, "\[quote name=""(.*?)""\](.*?)\[\/quote\]", output)#
</cfoutput>

Rick


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:235301
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

Reply via email to