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 [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=76345 --- shadow/76345 2005-10-06 03:20:13.000000000 -0400 +++ shadow/76345.tmp.14132 2005-10-06 03:20:14.000000000 -0400 @@ -0,0 +1,50 @@ +Bug#: 76345 +Product: Mono: Class Libraries +Version: 1.1 +OS: GNU/Linux [Other] +OS Details: +Status: NEW +Resolution: +Severity: +Priority: Wishlist +Component: CORLIB +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: Regex not recognizing [^\\] + +Please fill in this template when reporting a bug, unless you know what you +are doing. +Description of Problem: +/".*?[^\\]"/ ( new Regex("\".*?[^\\\\]\"") ) is supposed to match a string +like "asdf" or "as\"df". + +In MS.NET 1.1 this works fine, in Mono it doesn't. I've tested on both +Windows (1.1.8.3) and Linux (1.1.9.1) + + +Steps to reproduce the problem: +1. new Regex("\".*?\"").Match("\"asdf\"").Value +2. new Regex("\"[^\\\\].*?\"").Match("\"asdf\"").Value +3. new Regex("\".*?[^\\\\]\"").Match("\"asdf\"").Success +4. new Regex("\".*?[^\\\\]\"").Match("\"as\\\"df\"").Success + +Actual Results: +"asdf" +"asdf" +false +false + +Expected Results: +"asdf" +"asdf" +true +true + +How often does this happen? +every time + +Additional Information: _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
