In this post, we will see how to resolve What does “strict order” of sequence groups mean?
Question:
3.5. Sequence Group section saysElements enclosed in parentheses are treated as a single element, whose contents are strictly ordered. Thus, elem (foo / bar) blat matches (elem foo blat) or (elem bar blat), and
Given exactly one element is allowed what exact payload does the “strictly ordered” part carry?
Best Answer:
The sequence group(a b c)
is just for grouping the given elements. This is used for repetitions
like*
operator above).The example shown in 3.5 Sequence Group is only for shown the issue between
()
is needed when you want a matching of elem foo blat
or elem bar blat
.If you have better answer, please add a comment about this, thank you!
Source: Stackoverflow.com
Leave a Review