[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.
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: mono-bugs at ximian.com
+ReportedBy: kiess at h3c.de
+QAContact: mono-bugs at ximian.com
+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.
More information about the mono-bugs
mailing list