[Mono-bugs] [Bug 76345][Wis] New - Regex not recognizing [^\\]
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Oct 6 03:20:14 EDT 2005
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 ckknight at gmail.com.
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: mono-bugs at ximian.com
+ReportedBy: ckknight at gmail.com
+QAContact: mono-bugs at ximian.com
+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:
More information about the mono-bugs
mailing list