GNOME Bugzilla – Bug 705087
pattern "\d{14}|" => "regexp error : failed to compile: expecting a branch after |" in v2.9.1
Last modified: 2019-09-25 12:00:12 UTC
Created attachment 250382 [details] contains xml and xsd sample files Hello, I have some schema (on which I don't really have control) which contain some regex pattern which are failing to compile becuase the contain a regex pattern which looks like this "\d{14}|" (14 décimal or nothing)... pattern value="\d{14}|()" => OK pattern value="\d{14}|" => KO regexp error : failed to compile: expecting a branch after | .../pbPattern.xsd:39: element pattern: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}pattern': The value '\d{14}|' of the facet 'pattern' is not a valid regular expression. WXS schema .../pbPattern.xsd failed to compile xmllint --version .../xmllint: using libxml version 20901 compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 FTP HTTP DTDValid HTML Legacy C14N Catalog XPath XPointer XInclude Iconv ISO8859X Unicode Regexps Automata Expr Schemas Schematron Modules Debug Zlib
Hi, This problem is also present on the Linux platform : /usr/local/bin/xmllint: using libxml version 20902 compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 FTP HTTP DTDValid HTML Legacy C14N Catalog XPath XPointer XInclude Iconv ISO8859X Unicode Regexps Automata Expr Schemas Schematron Modules Debug regexp error : failed to compile: expecting a branch after | pbPattern.xsd:36: element pattern: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}pattern': The value '\d{14}|' of the facet 'pattern' is not a valid regular expression. WXS schema pbPattern.xsd failed to compile
*** This bug has been marked as a duplicate of bug 649244 ***