[Mono-bugs] [Bug 78895][Wis] New - Regex.Replace

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Jul 19 02:43:26 EDT 2006


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 alt at inetlab.ru.

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

--- shadow/78895	2006-07-19 02:43:26.000000000 -0400
+++ shadow/78895.tmp.30854	2006-07-19 02:43:26.000000000 -0400
@@ -0,0 +1,46 @@
+Bug#: 78895
+Product: Mono: Class Libraries
+Version: 1.1
+OS: SUSE 9.2
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: alt at inetlab.ru               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Regex.Replace
+
+I found that Regex.Replace method works wrong on my platform
+
+Folowing application returns wrong result. 
+
+using System;                             
+using System.Text.RegularExpressions;     
+                                          
+public class MainClass {                  
+                                          
+                                          
+  [STAThread]                             
+  public static void Main() {             
+                                          
+  string str = "\\s\\n\\r";               
+  string src = "#";                       
+                                          
+  string res = Regex.Replace(src,"#",str);
+  Console.WriteLine(res);                 
+                                          
+  }                                       
+}        
+           
+On console I get output "s".                       
+Normaly this code should output string "\s\n\r";
+
+
+How often does this happen? 
+always


More information about the mono-bugs mailing list