Re: Section 9.6.3.5, Regular Expression Matching Rules

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Kenneth Tanzer <ktanzer(at)desc(dot)org>
Cc: pgsql-docs(at)postgresql(dot)org
Subject: Re: Section 9.6.3.5, Regular Expression Matching Rules
Date: 2004-11-28 20:39:35
Message-ID: 19967.1101674375@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs pgsql-general

Kenneth Tanzer <ktanzer(at)desc(dot)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

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Simon Riggs 2004-11-28 21:35:25 Re: [PATCHES] SQL conformance related patch
Previous Message Bruce Momjian 2004-11-28 04:08:01 Re: Array function

Browse pgsql-general by date

  From Date Subject
Next Message Jose Mendoza 2004-11-28 20:43:19 Postgresql function in C++
Previous Message Joshua D. Drake 2004-11-28 18:26:44 Re: XUL and mozilla/firefox SQL extension