Regular expression question - Mailing list pgsql-general

From Steve Heaven
Subject Regular expression question
Date
Msg-id 3.0.1.32.20001211110956.00fd1208@mail.thornet.co.uk
Whole thread Raw
In response to Trip to Japan  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: Regular expression question  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Alessio Bragadini
Date:
Subject: Re: Problems with starting Postgres
Next
From: Denis Perchine
Date:
Subject: Re: overhead of "small" large objects