[SQL, regex, words] how to match word boundaries using regex's?

Поиск
Список
Период
Сортировка
От Tony.Curtis@vcpc.univie.ac.at
Тема [SQL, regex, words] how to match word boundaries using regex's?
Дата
Msg-id 199810191302.PAA05430@haze.vcpc.univie.ac.at
обсуждение исходный текст
Ответы Re: [SQL] [SQL, regex, words] how to match word boundaries using regex's?  ("Gene Selkov Jr." <selkovjr@mcs.anl.gov>)
Список pgsql-sql
Hi,

I have been searching all the mailing lists, the on-line
docs, and the source! but cannot find an answer/solution to
this:

I have a varchar() field containing descriptions of things
(doesn't matter what they are).

I want to do a regex match limited to words.

I tried this:

   where ... ~ '\Wword\W';
   where ... ~ '\W*word\W*';
   where ... ~ '\b\(word\)\b';

and other things with LIKE but no joy.

How can I do this?

thanks
tony

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

Предыдущее
От: Ulf Mehlig
Дата:
Сообщение: `statistical' aggregate functions etc.
Следующее
От: "Gene Selkov Jr."
Дата:
Сообщение: Re: [SQL] [SQL, regex, words] how to match word boundaries using regex's?