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

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Feb 17 06:52:59 EST 2009


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

User atsushi at ximian.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=476410#c1





--- Comment #1 from Atsushi Enomoto <atsushi at ximian.com>  2009-02-17 04:52:58 MST ---
Similarly, the following pattern also doesn't match.

string pattern = @"([\p{IsBasicLatin}-[\p{Cc}]])+";

It is actually used in OOXML RELAX NG grammar. It is almost just as a note, the
following pattern and the target must match:

string pattern =
@"(((([\p{IsBasicLatin}-[\p{Cc}\x127\(\)<>@,;:\\""/\[\]\?=\{\}\s\t]])+))/((([\p{IsBasicLatin}-[\p{Cc}\x127\(\)<>@,;:\\""/\[\]\?=\{\}\s\t]])+))((\s+)*;(\s+)*(((([\p{IsBasicLatin}-[\p{Cc}\x127\(\)<>@,;:\\""/\[\]\?=\{\}\s\t]])+))=((([\p{IsBasicLatin}-[\p{Cc}\x127\(\)<>@,;:\\""/\[\]\?=\{\}\s\t]])+)|(""(([[\x80-\xFF]\p{IsBasicLatin}-[\p{Cc}\x127""\n\r]]|(\s+))|(\\[\p{IsBasicLatin}]))*""))))*)";
string target =
"application/vnd.openxmlformatsofficedocument.wordprocessingml.footnotes+xml";

This might expose other regex issues, but this bug blocks further research so
far.

-- 
Configure bugmail: https://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