Regular expression question

Поиск
Список
Период
Сортировка
От Steve Heaven
Тема Regular expression question
Дата
Msg-id 3.0.1.32.20001211110956.00fd1208@mail.thornet.co.uk
обсуждение исходный текст
Ответ на Trip to Japan  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: Regular expression question  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Does the regular expression parser have anything equivalent to Perl's \w
word boundary metacharacter?

I want to select tuples where a text field contains a certail whole word.
Using fieldname ~* 'searchword' wont work because it picks up the
searchword emdedded in other words. Using ~*' searchword ' wont find it at
the beginning or end of the string.
So far we have:
 field ~*' searchword ' OR field ~*'^searchword ' OR field ~*' searchword$'
but I would like something more elegant.

Steve

--
thorNET  - Internet Consultancy, Services & Training
Phone: 01454 854413
Fax:   01454 854412
http://www.thornet.co.uk

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

Предыдущее
От: Alessio Bragadini
Дата:
Сообщение: Re: Problems with starting Postgres
Следующее
От: Denis Perchine
Дата:
Сообщение: Re: overhead of "small" large objects