N
Nils Gösche
Hi!
I think I stumbled upon a bug in the Regex class (well, a customer did,
actually):
using System;
using System.Text.RegularExpressions;
namespace ConsoleTest
{
class Program
{
static void Main(string[] args)
{
Regex regex = new Regex(@".*(\W.*)*Belastungs.*(\W.*)*");
string testInput = "Datum motivation lAItardsr "
+ "JKoopsrations- fErfesoung !bera(t3cha 1";
Console.WriteLine("Result is: '{0}'", regex.Match(testInput));
}
}
}
If I compile this code as a C# program in Visual Studio 2005 and run it,
the program hangs forever in regex.Match. I haven't tried VS 2008 yet.
Is this a known bug?
Regards,
I think I stumbled upon a bug in the Regex class (well, a customer did,
actually):
using System;
using System.Text.RegularExpressions;
namespace ConsoleTest
{
class Program
{
static void Main(string[] args)
{
Regex regex = new Regex(@".*(\W.*)*Belastungs.*(\W.*)*");
string testInput = "Datum motivation lAItardsr "
+ "JKoopsrations- fErfesoung !bera(t3cha 1";
Console.WriteLine("Result is: '{0}'", regex.Match(testInput));
}
}
}
If I compile this code as a C# program in Visual Studio 2005 and run it,
the program hangs forever in regex.Match. I haven't tried VS 2008 yet.
Is this a known bug?
Regards,