[thelist] CF: Text Formatting Question

Joshua Olson joshua at waetech.com
Tue Jul 22 12:45:57 CDT 2003


----- Original Message ----- 
From: "Seb" <seb at poked.org>
Sent: Tuesday, July 22, 2003 1:34 PM


> #Replace(Body, "<bf>", "<em>","ALL")#
> #Replace(Body, "</bf>", "</em>","ALL")#
>
> is a quick 2-step method. CF regexp gurus can probably offer a more
> efficient method.

I'm no guru, but I may recommend using the ReplaceList function.

Example:

#ReplaceList(body, "<bf>,</bf>", "<em>,</em>")#

Note, it's case-sensitive, so make sure that the <bf> and </bf> are always
lowercase.

Good luck,

<><><><><><><><><><>
Joshua Olson
Web Application Engineer
WAE Tech Inc.
http://www.waetech.com
706.210.0168



More information about the thelist mailing list