Please do not reply to this email- if you want to comment on the bug, go to the URL shown below and enter your comments there.
Changed by [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=77487 --- shadow/77487 2006-02-06 18:10:26.000000000 -0500 +++ shadow/77487.tmp.8739 2006-02-06 18:10:26.000000000 -0500 @@ -0,0 +1,55 @@ +Bug#: 77487 +Product: Mono: Class Libraries +Version: 1.0 +OS: +OS Details: +Status: NEW +Resolution: +Severity: +Priority: Normal +Component: System +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: Regex isn't matched + +Description of Problem: +The regex "^(a[^a]*)*a$" doesn't match the string "a a". + +Steps to reproduce the problem: +1. cat > Regex.cs << EOF +using System; +using System.Text.RegularExpressions; + +public class M { + public static void Main() { + Console.WriteLine (Regex.Matches("a a", @"^(a[^a]*)*a$").Count); + } +} +EOF +2. mcs Regex.cs +3. mono Regex.exe + +Actual Results: +0 + +Expected Results: +1 + +How often does this happen? +always + +Additional Information: +I'm using Mono svn r56594 + +When I run + echo 'a a' | egrep '^(a[^a]*)*a$' +it outputs + a a +so the regex should be correct. + +Also, if I remove one of the stars in the C# program, the program will run +correctly. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
