Just a shot but see how this works. #rereplacenocase(str, "(font-family:)(.*?)(;|""|>)|\)", "\1arial\3", "all")#
It turned this font-family:verdana;font-family:arial(w1);font-family:sans-serif"font-family :sans-serif> into this font-family:arial;font-family:arial;font-family:arial"font-family:arial> but of course thatÂ’s not a real-world test it only works if the name of the font ends with on of these... ; " > ) And puts the ending char back in place except when it is a ) ..:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -----Original Message----- From: Adkins, Randy [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 11, 2005 10:49 AM To: CF-Talk Subject: Best Approach? What is the best approach to searching a LARGE segment of text for each instance of FONT-FAMILY and changing the actual value of it to ARIAL? Here is an example of the text before it is converted: <P class=MsoNormal style="MARGIN: 0in 0in 0pt 1in"><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: VERDANA">TESTING THIS OUT</SPAN> Now the catch is, the font-family could be any font, but all needs to be changed to one standard font. Also there are variations of fonts such as: Arial (W1), that should be just ARIAL. Without doing a Search and Replace for each and every variation of each font (which is a nightmare to even consider), I had thought of doing a search for FONT-FAMILY then finding the end of the value by either a single quote, double quote, semi-colon or even the greater than symbol (>) and then replacing it that way, but it seems to be more cumbersome than it should be. Any ideas on improving that?? Thanks! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:220715 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=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54