Try it without the parens... you're not back-referencing anything.


At 2:59 PM -0700 5/22/01, Eron Cohen wrote:
>Why does this cause a "Bad Regular Expression" error?
>
><CFSET
>VARIABLES.this_body=rereplacenocase(this_body,"<script[^>]*>(.*)<\/sc 
>ript[^>]*>","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[^>]*>(.*)<\/sc 
>ript[^>]*>","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