Have you tried setting the following in castor.properties to make
sure CASTOR is using Jakarta for pattern matching ?

  org.exolab.castor.regexp=org.exolab.castor.util.JakartaRegExpEvaluator

Laslo

======================================================================
     _  _ ___  ___         Laslo Bednarik    Tel. {0|49}-7031-468-2025
    | || | _ \/ __|        Software Engineer Telnet           701-2025 
    | __ |  _/\__ \                          Fax  {0|49}-7031-468-2207
    |_||_|_|  |___/                                           701-2207
=========== Hewlett-Packard ============           ___ _____ 
=           HP Services IT             =          |_ _|_   _|
=     Mail: [EMAIL PROTECTED]      =           | |  | |  
= http://isoit155.bbn.hp.com/~lbednari =          |___| |_|  
======================================================================


-----Original Message-----
From: Dobrovolny Stefan [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 18, 2002 2:15 PM
To: [EMAIL PROTECTED]
Subject: [castor-dev] Regexp problem in sourcegen ...


Hello,

    I declared type in XML schema by restriction, regexp = 
"(\d{1,8}(&\d{1,8})*)|(\d{1,8}(&&\d{1,8})?)" (1-8 digits either followed 
by '&' sign and again 1-8 digits or once followed by '&&' and the 
number.(In schema is written & of course) I generated the sources 
and tried to test it.

    *But also a string 111&111aaa was validated as OK. *I tested the 
string using jakarta regexp directly and it behaves correctly.

    Have I done something in a wrong way or is it a bug?

    regards, Stefan.
   

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to