Following your thread More regexp madness...

I wasn't able to ascertain why the attributes notation was needed.
Could you enlighten?

>><cfset ugly = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
>>Transitional//EN">'>
>><cfset attributes.bodytext='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
>>4.0
>>Transitional//EN"> helllo hello'>
>><cfset attributes.bodytext = replace(attributes.bodytext,
>>ugly,"","ALL")>

any insight would be appreciated

Thank You
Kevin


Date: Thu, 27 Dec 2001 09:17:44 -0700
From: Andre Turrettini <[EMAIL PROTECTED]>
Subject: RE: More regexp madness
Message-ID: <[EMAIL PROTECTED]>

Hi Kay,
this worked ok for me.  Pretty much right off your post.
DRE

<cfset ugly = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">'>
<cfset attributes.bodytext='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
4.0
Transitional//EN"> helllo hello'>
<cfset attributes.bodytext = replace(attributes.bodytext,
ugly,"","ALL")>

<form>
<textarea cols="50"
rows="6"><CFOUTPUT>#attributes.bodytext#</CFOUTPUT></textarea>
</form>

-----Original Message-----
From: Kay Smoljak [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 27, 2001 9:13 AM
To: CF-Talk
Subject: More regexp madness


FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to