[Mono-bugs] [Bug 80554][Nor] New - Regex Parsing Exception

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Jan 18 22:51:06 EST 2007

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 monkey at jpobst.com.


--- shadow/80554	2007-01-18 22:51:06.000000000 -0500
+++ shadow/80554.tmp.11125	2007-01-18 22:51:06.000000000 -0500
@@ -0,0 +1,31 @@
+Bug#: 80554
+Product: Mono: Class Libraries
+Version: 1.2
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: monkey at jpobst.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: Regex Parsing Exception
+string regex = @"^\s*(?<name>)\((?(static)|(?<args>.*))\)";
+Regex constructorRegex = new Regex (regex, RegexOptions.ExplicitCapture);
+crashes on mono with:
+AE: Reference to undefined group name static
+On MS, this appears to be perfectly valid as no exception is thrown.
+Unfortunately, I don't even know what the regex is supposed to do.  I was
+trying to port NClass (http://nclass.sourceforge.net/) as a demo for
+winforms and it dies with this.

More information about the mono-bugs mailing list