Re: Regex problems with XMLBeans

"robertlazarski ." <[email protected]>
Newsgroups gmane.text.xml.axis.user
Message-ID <CABpPLBUbULJ+Gs7ANze36pvv685Gop5VkJSoCAWOs1uaCfNwYg__15588.0216313109$1392420964$gmane$org@mail.gmail.com>
On Fri, Feb 14, 2014 at 8:14 PM, T. Allen <[email protected]> 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" .
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.