RE: Regular Expression in CF

2000-12-28 Thread Seva Petrov

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

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

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

]*>.*?

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:
> .*|\s
> This works for the following:
>
>  src="<A  HREF="http://images.foxnews.com/root_js.js">http://images.foxnews.com/root_js.js</A>">
>
> 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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Regular Expression in CF

2000-12-28 Thread BORKMAN Lee

Hi Brandon,

BEWARE!!!

A RegExp of this kind, .*, will pick up everything from
the start of your FIRST , through to the close of your LAST