
24 Nov
2004
24 Nov
'04
1:37 p.m.
A Stephen McGough wrote:
I've put this version in for now - as it seems the most complete. However, if I'm correct the following is a valid string "34-45 55-66"
Am I correct? Is there any way to force people to put a comma between these?
Actually, the RE-in-XSD spec also states (in a Note in the appendix) that REs in pattern facets are implicitly anchored at both ends. If you add those anchors in explicitly when testing in some other programming language (e.g. Perl) you'll see that your example is illegal. So I think my RE really is correct. :^) I did have a quick panic when you said there might be a problem with it though; it's complex enough that I couldn't be 100% sure just by inspection. :^/ Donal.