[Mono-bugs] [Bug 54265][Min] Changed - spurious error message with regex matching
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Dec 7 07:24:26 EST 2006
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by mono at vergari.ch.
http://bugzilla.ximian.com/show_bug.cgi?id=54265
--- shadow/54265 2006-05-12 15:48:29.000000000 -0400
+++ shadow/54265.tmp.20647 2006-12-07 07:24:26.000000000 -0500
@@ -1,9 +1,9 @@
Bug#: 54265
Product: Mono: Class Libraries
-Version: unspecified
+Version: 1.2
OS: unknown
OS Details:
Status: NEW
Resolution:
Severity: Unknown
Priority: Minor
@@ -238,6 +238,47 @@
were always there (happen during processing vanilla http requests)
but fine if I extract the regex inputs and tested with isolated cases.
I guess that you can put break point or trace there and see whether
any of your aspx projects can trigger it. If cannot be reproduced,
then it could actually have been fixed during these four months.
+
+------- Additional Comments From mono at vergari.ch 2006-12-07 07:24 -------
+I have the same error. In the method
+System.Text.RegularExpressions.Interpreter.Backtrack() on line 940
+(mono 1.2.2.1) the condition Debug.Assert(cp > mark_start, "Regex",
+"Attempt to backtrack forwards") is false and the message is displayed.
+
+My question is why? The regex works fine and the result in mono is the
+same which I receive from the original implementation from MS.
+
+Regex:
+[ \t]*(?<Address>(?>(?<Company>([^\|]+))[ \t]*(\|)[
+\t]*(?<DescriptionStreet>((?<Description>([^\|]+))[ \t]*(\|)[
+\t]*((?<Description>([^\|]+))[ \t]*(\|))?[
+\t]*((?<Description>([^\|]+))[ \t]*(\|))?[
+\t]*(?<Street>((?!((Postfach|CP|PF|Case postale) ))[^\|]+))[
+\t]*(\|)|((?<Street>((?!((Postfach|CP|PF|Case postale) ))[^\|]+))[
+\t]*(\|))?))[ \t]*((Postfach|CP|PF|Case postale)[ \t]*((?<PO>(\d+)))?[
+\t]*(\|))?[ \t]*(?<PLZ>((CH\-|D\-|FL\-)?\d{4,}(?!([+()[\]./ '-]*\d))))[
+\t]*(?<City>([^\|]+))[ \t]*((\|)[
+\t]*(?<Country>(Schweiz|Liechtenstein)))?)[ \t]*((?>(\|)[
+\t]*((Tél.|Tel\.G:|Telefon Geschäft:|Occasi|Corv:|Telefon))?[
+\t]*((?<PhoneW>((Direkt:|Deutsch|Français|Werkstatt:)?([+()[\]./
+'-]*\d){9,}[^\|]*)))?))?[ \t]*((?>(\|)[ \t]*((Tel\.P:|Telefon
+Privat:|Telefon))?[
+\t]*((?<PhoneP>((Direkt:|Deutsch|Français|Werkstatt:)?([+()[\]./
+'-]*\d){9,}[^\|]*)))?))?[ \t]*(((?>(\|)[ \t]*(Handy:|Mobile:|Natel)[
+\t]*((?<Handy>((Direkt:|Deutsch|Français|Werkstatt:)?([+()[\]./
+'-]*\d){9,}[^\|]*)))?))?[ \t]*((?>(\|)[ \t]*(Fax:)[
+\t]*((?<Fax>((Direkt:|Deutsch|Français|Werkstatt:)?([+()[\]./
+'-]*\d){9,}[^\|]*)))?))?|((?>(\|)[ \t]*(Fax:)[
+\t]*((?<Fax>((Direkt:|Deutsch|Français|Werkstatt:)?([+()[\]./
+'-]*\d){9,}[^\|]*)))?))?[ \t]*((?>(\|)[ \t]*(Handy:|Mobile:|Natel)[
+\t]*((?<Handy>((Direkt:|Deutsch|Français|Werkstatt:)?([+()[\]./
+'-]*\d){9,}[^\|]*)))?))?)[ \t]*((?>(\|)[ \t]*(?<Url>(http[^\|]+))))?[
+\t]*((?>(\|)[ \t]*(Email:)[ \t]*((?<Mail>([\w. at -]+)))?))?)[ \t]*
+
+Inputdata:
+mito ag - Opel|Zugerstrasse 7|6340 Sihlbrugg|Schweiz|041 760 92
+92|http://www.opel.ch/agences/page41100.cfm?lang=de&idgarage=CH0760_00783&lang=de
+
More information about the mono-bugs
mailing list