Re: greedy or not? regexps...

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Anton Melser" <melser(dot)anton(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: greedy or not? regexps...
Date: 2007-02-23 14:46:35
Message-ID: 17574.1172241995@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Anton Melser" <melser(dot)anton(at)gmail(dot)com> writes:
> I am trying to understand the function substring.

You haven't actually said anything that sounded surprising; and in any
case, without seeing the data being operated on, we can't comment much
on what's happening. I will note that '=([0-9]*)' is going to match
to the *first* "=" in the string, whether there happen to be any digits
after it or not, because the *-construct can match zero characters.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2007-02-23 14:54:46 Re: Writing oracle/postgress generic SQL
Previous Message Karl O. Pinc 2007-02-23 14:46:27 Re: Supported plpgsql BEFORE ... EACH ROW behavior