List Info

Thread: Remove Font tags




Remove Font tags
user name
2006-05-22 19:08:12
<cfscript>
	string1='<FONT color=##3399cc size=5>str1
line</font>';
	string2='<FONT color=##3399cc>str2
line</font>';
	str1regexed1=rereplacenocase(string1,
"<\/*font.*?>","",
"all");
	str1regexed2=rereplacenocase(string2,
"<\/*font.*?>","",
"all");
</cfscript>
<cfoutput>
<xmp>
#string1#
#string2#
#str1regexed1#
#str1regexed2#
</xmp>
</cfoutput>

That oughtta do it.

Andrew Thielen
Senior Applications and Database Developer
Environmental Defense

http://www.enviro
nmentaldefense.org
http://www.fightglo
balwarming.org

-----Original Message-----
From: Robert Walters [mailto:rwaltersimaira.com] 
Sent: Monday, May 22, 2006 2:42 PM
To: NYCFUG
Subject: Remove Font tags

Hello,

I need to run through 5000 records and remove font tags:

<FONT color=#3399cc>

<FONT color=#3399cc size=5>

etc.

What is inside is random.  Any ideas?

Thanks.......Rob



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:25:2559
Archives: 
http://www.houseoffusion.com/cf_lists/threads.cfm/25
Subscription: http
://www.houseoffusion.com/lists.cfm/link=s:25
Unsubscribe: http://www.houseoffusion.com/cf_lists/u
nsubscribe.cfm?user=22184.15789.25
Donations & Support: http://www.h
ouseoffusion.com/tiny.cfm/54
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )