axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Gainty <mgai...@hotmail.com>
Subject RE: Regex problems with XMLBeans
Date Sun, 16 Feb 2014 01:39:29 GMT
<xsd:pattern value="^(NA|UN).*"/>
NOT NA OR NOT UN with any extension is not


<xsd:pattern value="(NA|UN).*"/>

NAOR UN with any extension

 

this is incorrect behaviour

 

https://issues.apache.org/jira/i#browse/AXIS-2899

Feel free to add comments..
Obrigado Roberto
Martin-







> Date: Fri, 14 Feb 2014 21:34:57 -0200
> Subject: Re: Regex problems with XMLBeans
> From: robertlazarski@gmail.com
> To: java-dev@axis.apache.org
> CC: java-user@axis.apache.org
> 
> On Fri, Feb 14, 2014 at 8:14 PM, T. Allen <bif@verizon.net> wrote:
> > I did not receive any replies about this problem but was able to get past
> > it. Changing the regex from:
> > <xsd:pattern value="^(NA|UN).*"/>
> >
> > to:
> > <xsd:pattern value="(NA|UN).*"/>
> >
> > fixed the problem. It seems XML Beans does not interpret the leading ^
> > symbol correctly. Is this by design or should I create a JIRA?
> >
> > Thanks,
> > T
> >
> 
> Glad to you found the problem. While I have used xmlbeans with axis2,
> I never used regex like that with it and didn't have any advice.
> 
> Looking here though indicates that this is by design:
> 
> http://www.w3.org/TR/xmlschema-0/#regexAppendix
> 
> "the expression language does not contain the metacharacters ^ and $,
> although ^ is used to express exception, e.g. [^0-9]x" .
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-user-help@axis.apache.org
> 
 		 	   		  
Mime
View raw message