[Mono-devel-list] Problem with regular expressions.

Ben Maurer bmaurer at ximian.com
Tue Nov 9 07:59:45 EST 2004


> Hi,
>
> Regular expressions do not seem to work correctly. This sample program
> doesnt give the correct o/p:
> .
> .
> .
> class sample {
>         public static void Main(String [] args) {
>              Regex re = new Regex("\\b(?<num1>\\d+)");
>              string intStr = "1000";
>              Match m = re.Match(intStr);
>              Console.WriteLine(m.Result("${num1}"));
>         }
> }
>
> sudha at blr-mono-sachin:~/ado.net> mcs sample.cs
> Compilation succeeded
> sudha at blr-mono-sachin:~/ado.net> mono sample.exe
> 3612311011710949125
>
> However, it worked fine with yesterday's (8th Nov) build. Is there
> anything I'm missing here ?


Crap that's probably me. I thought I had tested my changes, maybe not enough.

I'll get a fix in right when I get home (4 pm EST, 8 hrs from now) if
someone doesnt beat me to it.





More information about the Mono-devel-list mailing list