Re: Section 9.6.3.5, Regular Expression Matching Rules - Mailing list pgsql-docs

From Tom Lane
Subject Re: Section 9.6.3.5, Regular Expression Matching Rules
Date
Msg-id 19967.1101674375@sss.pgh.pa.us
Whole thread Raw
In response to Section 9.6.3.5, Regular Expression Matching Rules  (Kenneth Tanzer <ktanzer@desc.org>)
List pgsql-docs
Kenneth Tanzer <ktanzer@desc.org> writes:
> Greediness is inherited from left to right, so that outer
> subexpressions take precedence over their component subexpressions.  The
> greediness of an RE is set by the first subexpression that is either
> greedy or non-greedy.

Isn't that a contradiction in terms?  I'd certainly think the term
"inheritance" means top-down, whereas the actual behavior is
bottom-up (except when "|" is involved).

Anyway, I don't think this explanation is materially better than what
we had.  ISTM the real lack in this section is examples to clarify the
implications of the rules, and you haven't added any ... in fact it
looks like you removed the examples that were there.

            regards, tom lane

pgsql-docs by date:

Previous
From: Kenneth Tanzer
Date:
Subject: Section 9.6.3.5, Regular Expression Matching Rules
Next
From: Simon Riggs
Date:
Subject: Re: [PATCHES] SQL conformance related patch