[Mono-bugs] [Bug 77487][Nor] New - Regex isn't matched

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Feb 6 18:10:26 EST 2006

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 kiess at h3c.de.


--- 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 Details: 
+Status: NEW   
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: kiess at h3c.de               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+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);
+  }
+2. mcs Regex.cs
+3. mono Regex.exe
+Actual Results:
+Expected Results:
+How often does this happen? 
+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

More information about the mono-bugs mailing list