This is not an error. The regex pattern specifies that the value must
contain two, three, or four "a" characters. It does NOT specify that the
value must ONLY contain two, three, or four "a" characters.

Try using ^[a]{2,4}$

-----Original Message-----
From: Radek Wisniewski [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 13, 2001 7:12 AM
To: [EMAIL PROTECTED]
Subject: regexp bug


Patterns like this:

<xsd:pattern value="[a]{2,4}"/>

say:
strings "a" is not valid
strings "aa" "aaa" "aaaa" are valid
but     "aaaaa" "aaaaaaaaaaaaa" and so on are valid to

Upper limit doesn't work.

xerces 1.4.3
any JDK

Radek Wisniewski
www.datenknecht.de



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to