| From: | Alvaro Herrera <alvherre(at)atentus(dot)com> |
|---|---|
| To: | Parker Thompson <parkert(at)u(dot)washington(dot)edu> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: regular expression question |
| Date: | 2002-06-18 01:00:06 |
| Message-ID: | Pine.LNX.4.44.0206172033100.2893-100000@cm-lcon-46-187.cm.vtr.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Parker Thompson dijo:
> I have a question regarding regular expression with postgres.
>
> I am unable to find any reference to match on word boundaries (\b in
> perl). If this functionality exists in postgres I am interested in
> knowing how to use it, an example would probably suffice.
>
> If it does not, which is what I suspect, I am interested in knowing how
> others have dealt with this problem. It seems silly/ineffecient to just
> try all cases, i.e. field ~* (^term| term | term$), but I can't think of a
> better way.
You can use [[:<:]] and [[:>:]] as word boundaries.
--
Alvaro Herrera (<alvherre[a]atentus.com>)
"La vida es para el que se aventura"
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Arguile | 2002-06-18 01:40:55 | Re: website design |
| Previous Message | Bill Moran | 2002-06-17 23:50:30 | Are there any "official" PostgreSQL banners available. |