From: | David Ford <david+cert(at)blue-labs(dot)org> |
---|---|
To: | Alvaro Herrera <alvherre(at)atentus(dot)com> |
Cc: | Parker Thompson <parkert(at)u(dot)washington(dot)edu>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: regular expression question |
Date: | 2002-06-18 04:26:49 |
Message-ID: | 3D0EB689.3010902@blue-labs.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
I wish everyone would use the same syntax...it's getting to the point
where you need a reference book for everybody's idea of how regex should
be done.
-d
Alvaro Herrera wrote:
>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.
>
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2002-06-18 04:37:28 | Re: regular expression question |
Previous Message | Vince Vielhaber | 2002-06-18 02:50:58 | Re: website design |