(?-x-i-s) Regex and Mono


Mono doesn't see (?-x-i-s) as valid options. Instead, it expects it in the format (?-xis).

To make the library work on Mono, you need to change the CompileRule method in LanguageCompiler to the following:

regex.AppendFormat("(?-xis)(?m)({0})(?x)", languageRule.Regex);

I will be logging a bug with the Mono team as well as the existing syntax is valid on .NET.
Closed Sep 3, 2009 at 4:00 PM by
Fixed in 1.0 release.


matthaw wrote Aug 26, 2009 at 6:32 AM

This has been resolved in a prior checkin.