[Mono-dev] Mono issue with Regex

Vorobiev Maksim MVorobiev at croc.ru
Thu Apr 13 12:38:21 EDT 2006


Good day.
 
We have found the issue with Mono regular expression verson
1.1.13/1.1.14. It was ok with previously used version 1.1.8 - so, it's
some regression.
 
The next code sample:
 
   Regex rx = new Regex("E+(,E+)+1");
   String test = "E,E1";
   MatchesCollection mc = rx.Matches(test);
   foreach(Match m in mc)
   {
    Console.WriteLine(m.Value);
   }
 
couldn't find any matches under 13/14 versions of Mono runtime. But it
correctly works with MS.NET and Mono 1.1.8. What's wrong and could
somebody help?
 
BTW, this sample works well on new version (and on MS.NET and 1.18
also):
 
   Regex rx = new Regex("E+(,E+)+");
   String test = "E,E1";
   MatchesCollection mc = rx.Matches(test);
   foreach(Match m in mc)
   {
    Console.WriteLine(m.Value);
   }
 
The difference is the tailing symbol in the pattern. It doesn't matter
that the symbol exactly.
 
Is there are any ideas that should be fixed? Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060413/890a1371/attachment.html 


More information about the Mono-devel-list mailing list