IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Regular expressions implementations Options · View
kurent
Posted: Tuesday, August 31, 2010 7:30:54 AM
Rank: Advanced Member

Joined: 10/2/2009
Posts: 62
Location: Slovenia
I searched but just couldn't find anything about different implementations of regular expressions. Which ones exist and which one does XMLSpy use?
island
Posted: Tuesday, August 31, 2010 7:46:18 AM
Rank: Newbie

Joined: 10/28/2002
Posts: 1,283
Location: AT
If you are referring to regular expressions in the context of schema and xml validation then the following is used:
kurent
Posted: Wednesday, September 1, 2010 8:04:04 AM
Rank: Advanced Member

Joined: 10/2/2009
Posts: 62
Location: Slovenia
I asked because I have a problem with this regular expression: ^[a-zA-Z\s0-9\-]+$

I have a schema from another company and when I try to validate it says value does not match expression even when it's something simple like '1000'. Validation on the other side, so the other company goes thru with no errors. If I try it in XMLSpy I must put in '^1000$' in order to pass. It wants ^ and $ as literals.

Anyone encountered a similar problem?
island
Posted: Wednesday, September 1, 2010 8:33:35 AM
Rank: Newbie

Joined: 10/28/2002
Posts: 1,283
Location: AT
Sorry, but was this not explained in the link that I included in my response? -->

For this reason, the expression language does not contain the metacharacters ^ and $, although ^ is used to express exception, e.g. [^0-9]x.

kurent
Posted: Wednesday, September 1, 2010 10:33:14 AM
Rank: Advanced Member

Joined: 10/2/2009
Posts: 62
Location: Slovenia
It was, so basically the schema I am using is defined wrong. It shouldn't use those two metacharacters.
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.