query with regular expression

Поиск
Список
Период
Сортировка
От Glenn Schultz
Тема query with regular expression
Дата
Msg-id CAE-4=KHOnng+yqXzJW9KVW0nWR+a_WAs-RmxM6o8uhWJ8AN77A@mail.gmail.com
обсуждение исходный текст
Ответы Re: query with regular expression  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-general
All,

I am writing a query to select * from where ~ '[regx]  an example of the sting that I am matching is below

FHLG16725

The first two alpha characters to match are FN, FH, GN any alpha characters between those and the numeric don't matter as the first two alpha + numeric will create a unique.

reading the docs I am pretty sure I need to use ~ for bracket expression 

I tried '^[FN-FG-GN][0-9]' but does not seem to work.  I have to admit I am weak on regex - never quite seem to be able to get it through my coconut.

Any help would be appreciated,
Glenn

В списке pgsql-general по дате отправления:

Предыдущее
От: chiru r
Дата:
Сообщение: Re: Relocatable Binaries (RPMs) : custom installation path for PostgreSQL
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: query with regular expression