pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tony.Curtis@vcpc.univie.ac.at
To: pgsql-sql@postgresql.org
Subject: [SQL, regex, words] how to match word boundaries using regex's?
Date: Mon, 19 Oct 1998 15:02:32 +0200
Message-ID: <199810191302.PAA05430@haze.vcpc.univie.ac.at> (raw)

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



view thread (3+ messages)  latest in thread

Message-ID: <199810191302.PAA05430@haze.vcpc.univie.ac.at>
Permalink:  ../199810191302.PAA05430@haze.vcpc.univie.ac.at/
Also on:    postgresql.org/message-id/199810191302.PAA05430@haze.vcpc.univie.ac.at

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: Tony.Curtis@vcpc.univie.ac.at
  Subject: Re: [SQL, regex, words] how to match word boundaries using regex's?
  In-Reply-To: <199810191302.PAA05430@haze.vcpc.univie.ac.at>
  References: <199810191302.PAA05430@haze.vcpc.univie.ac.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox