[Mono-bugs] [Bug 654700] RegEx Failure

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Nov 23 14:46:23 EST 2010



Rodrigo Kumpera <rkumpera at novell.com> changed:

           What    |Removed                     |Added
             Status|ASSIGNED                    |NEW

--- Comment #5 from Rodrigo Kumpera <rkumpera at novell.com> 2010-11-23 19:46:22 UTC ---
Here is a reduced version of the bug:

string ippattern = @"^(2|29){1}$";

Regex checkip = new Regex(ippattern);
if (checkip.IsMatch("29")) // now check for ipaddress
    Console.WriteLine ("Good ip");
    Console.WriteLine ("BAD ip!");

The problem is that $ is not doing proper backtracking.

And it's going to be ugly, hard and messy to fix it.

Which means it requires someone to step up for something like a week
to fix this class of problems.

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