- From: Norm Tovey-Walsh <norm@saxonica.com>
- Date: Tue, 07 Oct 2025 17:40:12 +0100
- To: Sheila Thomson <discuss@bluegumtree.com>
- Cc: public-ixml@w3.org
[ I seem to have come across these messages out of order, apologies. ] Sheila Thomson <discuss@bluegumtree.com> writes: > Is it possible to specify the exact number of times a pattern is expected to repeat? (without repeating the pattern that many times in the grammar). Akin to "\d{10}" in a regular expression for exactly 10 digits. If so, how, please? No, but an exact number isn’t going to introduce any ambiguity, so the workaround construction is less awkward. If d = ["0"-"9"] . number = d, d, d, d, d, d, d, d, d, d . is hard to read, this also works: d = ["0"-"9"] . -d2 = d, d . -d4 = d2, d2 . number = d4, d4, d2 . None of which is to say that making ranges easier to specify in iXML isn’t a good idea. Be seeing you, norm -- Norm Tovey-Walsh Saxonica
Received on Tuesday, 7 October 2025 16:40:19 UTC