Re: select all matches for a regular expression ? - Mailing list pgsql-general

From Anton Melser
Subject Re: select all matches for a regular expression ?
Date
Msg-id 92d3a4950702230718s18c4854ax8034cc49a2a1f6b0@mail.gmail.com
Whole thread Raw
In response to Re: select all matches for a regular expression ?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: select all matches for a regular expression ?  ("ksherlock@gmail.com" <ksherlock@gmail.com>)
List pgsql-general
On 23/02/07, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> "Anton Melser" <melser.anton@gmail.com> writes:
> > I need to be able to get all the matches for a particular regexp from
> > a text field that I need to use in another query in a function. Is
> > this possible with plpgsql? Do I have to install the perl language?
>
> You need plperl (or pltcl; likely plpython would work too) --- the
> built-in regex functions don't have any way to return more than the
> first match.  There's a patch pending to provide more functionality
> here for 8.3, but it won't help you today.

Thanks for the info
Cheers
Anton

pgsql-general by date:

Previous
From: "Joris Dobbelsteen"
Date:
Subject: Re: complex referential integrity constraints
Next
From: Tom Lane
Date:
Subject: Re: false unique constraint error...for me