Hello,

How would I match the following body of code (from { to })?

void foo ()
{
some code here
some more code here
and yet, still more code here
}

Thanks in Advance,

Sean

Re: Matching over multiple lines by Steve

Steve
Tue Apr 27 09:29:55 CDT 2004

Sean wrote:
> How would I match the following body of code (from { to })?
>
> void foo ()
> {
> some code here
> some more code here
> and yet, still more code here
> }

With New RegExp
.Pattern = "{[\s\S]*}"
WScript.Echo .Execute(yourString)(0)
End With

--
Steve

Many people take no care of their money till they come nearly to the end of it,
and others do just the same with their time. -Johann Wolfgang von Goethe