repetition

14 December spec

"A factor repeated zero or more times is followed by an asterisk,
optionally followed by a separator, e.g. abc* and abc*",". For
instance "a"*"#" would match the empty string, a a#a a#a#a etc."

I'm confused. To my thinking "a"*"#"  would match any number of 'a'
characters followed by one hash character.

To me, a#a a#a#a appears wrong. Is zero or more 'left associative' if
that's the right expression? How does the a# repetition match?

Same applies to the zero or one example.

regards


-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.

Received on Thursday, 16 December 2021 11:03:20 UTC