If you know that your <script> block will not contain '<', you might do:

<script[^>]*>[^<]*</script>

Not extremely helpful, I know. What would do the trick is something like
Perl's stingy matching:

<script[^>]*>.*?</script>

Does anyone know if CF supports something similar?

Cheers,
Seva Petrov

> -----Original Message-----
> From: Brandon Behrens [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 28, 2000 4:45 PM
> To: CF-Talk
> Subject: Regular Expression in CF
>
>
> Can anyone out there tell me how I can use a regular
> expression to grab an
> entire script block?  Here is what I am using now:
>         <script.*>.*|\s</script>
> This works for the following:
>
> <script language="javascript"
> src="http://images.foxnews.com/root_js.js"></script>
>
> However, it won't work if there is anything inside the script
> blocks.  Any
> help would be greatly appreciated.
>
> Thanks,
>
> Brandon
>
>
>
~~~~~~~~~~~~~ Paid Sponsorship ~~~~~~~~~~~~~
Get Your Own Dedicated Win2K Server!      Instant Activation for $99/month w/Free 
Setup from SoloServer      PIII600 / 128 MB RAM / 20 GB HD / 24/7/365 Tech Support     
 Visit SoloServer, https://secure.irides.com/clientsetup.cfm.

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

Reply via email to