[Mono-bugs] [Bug 32414][Nor] New - Numbering of regular expression groups fails.
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
16 Oct 2002 23:28:08 -0000
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 mathias.hasselmann@gmx.de.
http://bugzilla.ximian.com/show_bug.cgi?id=32414
--- shadow/32414 Wed Oct 16 19:28:08 2002
+++ shadow/32414.tmp.7134 Wed Oct 16 19:28:08 2002
@@ -0,0 +1,50 @@
+Bug#: 32414
+Product: Mono/Class Libraries
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: mathias.hasselmann@gmx.de
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Numbering of regular expression groups fails.
+
+Automatic numbering of regular expression groups fails.
+
+Steps to reproduce the problem:
+
+using System;
+using System.Text.RegularExpressions;
+
+public TestCase
+{
+ public static void Main()
+ {
+ Regex re = new Regex('\\bModul:(.*)');
+ foreach (Group g in re.Match('Modul: Stammdaten').Groups)
+ {
+ Console.WriteLine(g.Text);
+ }
+ }
+}
+
+Actual Results:
+Modul: Stammdaten
+Modul: Stammdaten
+
+Expected Results:
+Modul: Stammdaten
+ Stammdaten
+
+How often does this happen?
+Always.
+
+Additional Information:
+Microsoft .NET Framework works as expected.