[Mono-bugs] [Bug 69193][Wis] New - System.Text.RegularExpressions.Syntax.Parser:ParseRepetitionBounds -- ArgumentException - Illegal {x,y}

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 7 Nov 2004 00:32:25 -0500 (EST)


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 eric@extremeboredom.net.

http://bugzilla.ximian.com/show_bug.cgi?id=69193

--- shadow/69193	2004-11-07 00:32:25.000000000 -0500
+++ shadow/69193.tmp.18308	2004-11-07 00:32:25.000000000 -0500
@@ -0,0 +1,53 @@
+Bug#: 69193
+Product: Mono: Class Libraries
+Version: 1.0
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: eric@extremeboredom.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: System.Text.RegularExpressions.Syntax.Parser:ParseRepetitionBounds -- ArgumentException - Illegal {x,y}
+
+I came across this while trying to use ".NET Pre-Build"
+(http://dnpb.sourceforge.net/). I don't know anything about regular
+expressions so I appologize for not being able to offer any more inforamtion.
+
+---
+
+using System;
+using System.Text.RegularExpressions;
+
+/* This works fine on MS.NET 1.1 and throws an ArgumentException on Mono
+1.0.4 */
+
+public class RegexTest {
+        public static void Main() {
+                Regex m_VarRegex = new Regex(@"\${(?<var>[\w|_]+)}");
+        }
+}
+
+---
+
+Unhandled Exception: System.ArgumentException: parsing
+"\${(?<var>[\w|_]+)}" - Illegal {x,y}
+Parameter name: \${(?<var>[\w|_]+)}
+in <0x00242>
+System.Text.RegularExpressions.Syntax.Parser:ParseRepetitionBounds
+(int&,int&,System.Text.RegularExpressions.RegexOptions)
+in <0x00721> System.Text.RegularExpressions.Syntax.Parser:ParseGroup
+(System.Text.RegularExpressions.Syntax.Group,System.Text.RegularExpressions.RegexOptions,System.Text.RegularExpressions.Syntax.Assertion)
+in <0x00087>
+System.Text.RegularExpressions.Syntax.Parser:ParseRegularExpression
+(string,System.Text.RegularExpressions.RegexOptions)
+in <0x00094> System.Text.RegularExpressions.Regex:.ctor
+(string,System.Text.RegularExpressions.RegexOptions)
+in <0x00012> System.Text.RegularExpressions.Regex:.ctor (string)
+in <0x0002c> RegexTest:Main ()