[Mono-bugs] [Bug 54537][Wis] New - Regex : Option RightToLeft is broken.
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Wed, 18 Feb 2004 13:26:45 -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 beauche@softhome.net.
http://bugzilla.ximian.com/show_bug.cgi?id=54537
--- shadow/54537 2004-02-18 13:26:45.000000000 -0500
+++ shadow/54537.tmp.25745 2004-02-18 13:26:45.000000000 -0500
@@ -0,0 +1,70 @@
+Bug#: 54537
+Product: Mono/Class Libraries
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: System
+AssignedTo: beauche@softhome.net
+ReportedBy: beauche@softhome.net
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Regex : Option RightToLeft is broken.
+
+Description of Problem:
+
+The regex option RightToLeft does not seem to work. The scan is always
+LeftToRight.
+
+
+Steps to reproduce the problem:
+Here is a sample program :
+
+
+ using System;
+using System.Text.RegularExpressions;
+
+namespace Test
+{
+ public class MainClass
+ {
+ public static void Main()
+ {
+ try {
+ Regex regPath = new Regex("a", RegexOptions.RightToLeft);
+ Match m;
+ int ptr = 0 ;
+ m = regPath.Match("aabbbaa", 3);
+ Console.WriteLine("Index: " + m.Index);
+
+ }
+ catch ( Exception ex )
+ {
+ Console.WriteLine("Exception caught: {0}", ex);
+ }
+ }
+ }
+}
+
+
+Actual Results:
+
+On Mono :
+$ mono 54242.exe
+Index: 5
+
+Expected Results:
+
+On .NET :
+D:\>54242.exe
+Index: 1
+
+How often does this happen?
+Everytime you try to use RightToLeft regex option.
+
+Additional Information: