Re: select all matches for a regular expression ?

From: "Anton Melser" <melser(dot)anton(at)gmail(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: select all matches for a regular expression ?
Date: 2007-02-23 15:18:39
Message-ID: 92d3a4950702230718s18c4854ax8034cc49a2a1f6b0@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 23/02/07, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> "Anton Melser" <melser(dot)anton(at)gmail(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2007-02-23 15:19:07 Re: false unique constraint error...for me
Previous Message Joris Dobbelsteen 2007-02-23 15:10:07 Re: complex referential integrity constraints