[regex-coach] Regular Expression Help

Jordan Marton jordan.marton at gmail.com
Thu Jan 4 01:49:56 UTC 2007


Any idea if I am doing somehting wrong? The expression works great in
Regex Coach, but once in ASP.NET 2.0, it freezes on the myRegex.Match
command...

Dim oM As Match
Dim myRegex As Regex

myRegex = New Regex("(?m-si)(?><w:p.+(\r?\n(?!<w:p>).*)*INTRODUCTION)(?s).+?</w:p>")

oM = myRegex.Match(strReport)
strReport = Replace(strReport, oM.Value, "Blah")
On 12/31/06, Thomas Wölk <lists at wir-vermessen.de> wrote:
> * Jordan Marton <jordan.marton at gmail.com> writes:
>
> > Here is my current attempt:
> > <w:p>.*(?=<w:t>).*(?=INTRODUCTION).*(?=</w:t>).*?</w:p>
>
> Just a fleeting thought...
>
> (?ims).*\n(<w:p>.*?(?=\[INTRODUCTION\]).*?</w:p>)
>
> --
> Thomas.
>
> _______________________________________________
> regex-coach site list
> regex-coach at common-lisp.net
> http://common-lisp.net/mailman/listinfo/regex-coach
>



More information about the regex-coach mailing list