[Mono-bugs] [Bug 54242][Wis] New - Regex: 'Split' function problem.

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 11 Feb 2004 20:31:31 -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 ndhameja@panaceasoftware.com.

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

--- shadow/54242	2004-02-11 20:31:30.000000000 -0500
+++ shadow/54242.tmp.28913	2004-02-11 20:31:31.000000000 -0500
@@ -0,0 +1,43 @@
+Bug#: 54242
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: ndhameja@panaceasoftware.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Regex: 'Split' function problem.
+
+Please fill in this template when reporting a bug, unless you know what 
+you are doing.
+Description of Problem:
+
+Steps to reproduce the problem:
+I ran into problems when using the following code:
+ parseWith = "/";
+ Regex regPath = new Regex(parseWith,RegexOptions.RightToLeft);
+ return regPath.Split(parseString);
+
+Actual Results:
+It throws an exception at 'regPath.Split'
+
+
+Expected Results:
+
+
+How often does this happen? 
+Everytime
+
+Additional Information:
+The workaround is to use the code below:
+char[] c = {'/'};
+string[] pS = parseString.Split(c,parseString.Length-1);
+return pS;