The wikipedia article on PEG states:
The fundamental difference between context-free grammars and parsing expression grammars is that the PEG's choice operator is ordered. If the first alternative succeeds, the second alternative is ignored. Thus ordered choice is not commutative, unlike unordered choice as in context-free grammars and regular expressions.
But this question has discovered that if the alternatives are substrings of each other; then regexes do not behave according to unordered choice
. The wiki is correct for most part but does not take care of this edge condition. Am I correct in my assessment ?