Regular express question - Mailing list pgsql-general

From David Goodenough
Subject Regular express question
Date
Msg-id 200706220942.19642.david.goodenough@btconnect.com
Whole thread Raw
Responses Re: Regular express question  (David Goodenough <david.goodenough@btconnect.com>)
List pgsql-general
I have a table that consists of a set of regular expressions, a priority
and a result.  I need to be able to match field in another table against
the set of regular expressions (ordered by priority) and use the first result.

Reading the documentation I can see how to put the regular expression
into an SQL statement (that is as text or a ? which my code provides) but
I can not see how to get the expression from the table.

David

pgsql-general by date:

Previous
From: "Albe Laurenz"
Date:
Subject: Re: standard LOB support
Next
From: Richard Huxton
Date:
Subject: Re: Can I backup/restore a database in a sql script?