[Mono-bugs] [Bug 476410] Regex does not consider range subtraction (foo-[\xMM-\xNN])

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun May 31 15:28:02 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=476410

User nospam at aijk.org added comment
http://bugzilla.novell.com/show_bug.cgi?id=476410#c2


Ian Green <nospam at aijk.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nospam at aijk.org




--- Comment #2 from Ian Green <nospam at aijk.org>  2009-05-31 13:28:01 MDT ---
A simpler example, with partial diagnosis:

The line
  Console.WriteLine( Regex.Replace("abcdefg_c]_", "[a-z-[b-d]]", "X") );

. processes the input string "abcdefg_c]_"
. and replaces any of the letters a-z, less b-d, with X.

NET 2.0 prints out the correct answer "XbcdXXX_c]_".

Mono 2.4 prints out "abcdefg_X_", showing a match to "c]" in the input string,
and implying that it has parsed the class "[a-z-[b-d]]" as "[a-z-[b-d]",
followed by a single "]".

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list