[Mono-list] Regex Behaviour different between mono and .Net

Glen Ford glen.ford at spinvox.com
Thu Sep 7 11:15:11 EDT 2006


I have noticed that the following code generates a exception on mono, 
but operates correctly on .Net.

Has anyone else found this?

See attached example code.

Exception Below:

Unhandled Exception: System.ArgumentException: parsing "\100" - 
Reference to undefined group number 100
Parameter name: \100
  at System.Text.RegularExpressions.Syntax.Parser.ResolveReferences () 
  at System.Text.RegularExpressions.Syntax.Parser.ParseRegularExpression 
(System.String pattern, RegexOptions options) [0x00000]
  at System.Text.RegularExpressions.Regex.Init () [0x00000]
  at System.Text.RegularExpressions.Regex..ctor (System.String pattern, 
RegexOptions options) [0x00000]
  at System.Text.RegularExpressions.Regex..ctor (System.String pattern) 
  at Test.TheRegex.Main (System.String[] args) [0x00000]



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20060907/0bad8a20/attachment.html 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: testRegex.cs
Url: http://lists.ximian.com/pipermail/mono-list/attachments/20060907/0bad8a20/attachment.pl 

More information about the Mono-list mailing list