Why does this cause a "Bad Regular Expression" error?

<CFSET
VARIABLES.this_body=rereplacenocase(this_body,"<script[^>]*>(.*)<\/script[^>]*>","X","ALL")>

The error I get is:
Information</H4><P><P>An error occurred while
evaluating the expression:

VARIABLES.this_body=rereplacenocase(this_body,"<script[^>]*>(.*)<\/script[^>]*>","X","ALL")

Bad regular expression

If I remove the (.*) in the middle of the two
<script></script> tags, no error occurs (but of course
I don't find what I am looking for.

Can anyone suggest a better way to get rid of script
tags (and what's between them? I don't want to use a
custom tag.)

Thanks,

Eron
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to