[Mono-bugs] [Bug 79347][Nor] Changed - Regex.Replace bug

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Sep 10 08:46:53 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 alan.mcgovern at gmail.com.


--- shadow/79347	2006-09-09 15:40:27.000000000 -0400
+++ shadow/79347.tmp.23834	2006-09-10 08:46:53.000000000 -0400
@@ -2,13 +2,13 @@
 Product: Mono: Class Libraries
 Version: 1.0
 OS: All
 OS Details: 
 Status: NEW   
+Severity: Unknown
 Priority: Normal
 Component: CORLIB
 AssignedTo: rharinath at novell.com                            
 ReportedBy: alan.mcgovern at gmail.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
@@ -56,6 +56,19 @@
 Expected Results:
 Should print out "true".
 How often does this happen? 
 Every time.
+------- Additional Comments From alan.mcgovern at gmail.com  2006-09-10 08:46 -------
+Just did another test or two. The bug is solely related to
+RegexOptions.RightToLeft. If i remove that option, and instead start
+processing the string at the offset where "announce" is, then the
+regex works perfectly.
+Regex r = new Regex("announce");
+this.scrapeUrl = r.Replace(announceUrl, "scrape", 1, indexOfAnnounce);
+where indexOfAnnounce = string.LastIndexOf('/') + 1;
+works perfectly.

More information about the mono-bugs mailing list