[Mono-dev] Mono issue with Regex

Raja R Harinath rharinath at novell.com
Mon Apr 17 03:39:57 EDT 2006


Hi,

"Vorobiev Maksim" <MVorobiev at croc.ru> writes:

> 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.

I'm fairly sure this is the same as bug #77487, which was fixed
recently.  Anyway, it works with a recent SVN snapshot, and should be
included in mono 1.1.15.

- Hari



More information about the Mono-devel-list mailing list