[thelist] ASP/RegExp

Chris Marsh chris at webbtech.co.uk
Thu Oct 3 12:39:01 CDT 2002


Jay

> I'm not terribly familiar w/ ASP's flavor of regex, as I
> mostly deal w/ ColdFusion, but I do believe a period inside
> of a class is a literal.
>
> Maybe try
>
> sPattern = "<<wttoc>>([\n]|.)*<</wttoc>>"

That's great, thanks! My next problem however, is that this matches the
following entire string:

<<wttoc>>Hello There<</wttoc>>
This is cool.
<<wttoc>>Hello There<</wttoc>>
This is cool.
<<wttoc>>Hello There<</wttoc>>

Whereas I want it match:

<<wttoc>>Hello There<</wttoc>>

three times. Any pointers?

Many thanks in advance.

Regards

Chris Marsh





More information about the thelist mailing list