PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL BE LOST SOMEWHERE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3537 *** shadow/3537 Mon Sep 10 14:12:48 2001 --- shadow/3537.tmp.11079 Mon Sep 10 14:12:48 2001 *************** *** 0 **** --- 1,36 ---- + +============================================================================+ + | Regex package incorrectly matches \d{1,4}\.\d{2} to 12345.99 | + +----------------------------------------------------------------------------+ + | Bug #: 3537 Product: Xerces-J | + | Status: NEW Version: 1.4.3 | + | Resolution: Platform: PC | + | Severity: Critical OS/Version: Windows NT/2K | + | Priority: Other Component: Other | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + This happens since version 1.4.1 up to 1.4.3 + 1.4.0 works fine. + Basically, the upper boundary of 4 is not being checked. I found this using + sun's xsdlib, which uses your regex libraries, and works fine with whatever + version it comes with, but Xerces-J (aforementioned versions) regex, has the + problem. Below is the output of a test program the xsdlib comes with, note that + {1,4} becomes {1,} in the error message: + + D:\xsdlib-20010424\src>java -classpath .;d:\xerces-1_4_3 + \xerces.jar;..\xsdlib.jar com.sun.tranquilo.datatype.CommandLineTester + XML Schema Part 2 command line tool + -->base string + -->add pattern \d{1,4}\.\d{2} + -->test 12345.99 + valid value + -->test .00 + invalid: the value does not match the regular expression pattern + "[0-9?-??-??-??-??-??-??-??-??-??-??-??-??-??-?]{1,}\.[0-9?-??-??-??-??-??-??- + ??-??-??-??-??-??-??-?]{2}". + --> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
