|
|
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?
|
|
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:
|
|
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?
|
|
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.
|
|
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.
|
|
|
guest |