[Mono-list] Regex lockup in 0.31

Christian Glodt chris@mind.lu
Mon, 19 Apr 2004 18:56:45 +0200

Content-Type: text/plain
Content-Transfer-Encoding: 7bit


the attached bit of code seemingly sends mono
into an infinite loop on my system. It hogs the
CPU at 100% and never terminates.

I'm using mono 0.31 on a Debian unstable system.
The regex works fine in python.


Christian Glodt

Content-Disposition: attachment; filename=split.cs
Content-Type: text/x-csharp; name=split.cs; charset=iso-8859-1
Content-Transfer-Encoding: 7bit

using System;
using System.Text.RegularExpressions;

class MainClass {
	public static void Main(string[] args)
		string ss = "a b c d e";
		string[] words = Regex.Split(ss, "[ \t\n\r]*");