[Mono-bugs] [Bug 475358] New: Regular expression groups are not populated as expected

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Feb 12 15:17:30 EST 2009


           Summary: Regular expression groups are not populated as
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.2.x
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: dmitchell at logos.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_5; en-us)
AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.20.1

The following expression reports incorrect results (can be run in the C# repl
if you have imported the System.Text.RegularExpressions namespace):

RegexOptions.ExplicitCapture |

The result of the call to Match should include two groups, "minimum" and
"maximum". The "minimum" group should fail, and the "maximum" group should
succeed with "48" being stored as the value.

However, for any input string consisting solely of digits, the first digit is
placed in the "minimum" group.

Reproducible: Always

Steps to Reproduce:
1. Open the C# repl
2. Invoke the statement "using System.Text.RegularExpressions;"
3. Invoke the expression listed in the details
Actual Results:  
The repl reports "4"

Expected Results:  
The repl should report ""

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list