Sender: owner-postgres95@postgres.Berkeley.EDU
X-Return-Path: andrew_yu
Received: from anu.estib.ee (estib.ee [193.40.121.77]) by nobozo.CS.Berkeley.EDU (8.6.10/8.6.3) with ESMTP id BAA11363 for <postgres95@nobozo.CS.Berkeley.EDU>; Thu, 9 Nov 1995 01:25:37 -0800
Received: from ossu.estib.ee (ossu.estib.ee [193.40.121.78]) by anu.estib.ee (8.7/8.7) with SMTP id MAA10773; Thu, 9 Nov 1995 12:21:24 -0200 (GMT)
Message-Id: <199511091421.MAA10773@anu.estib.ee>
Date: Thu, 09 Nov 95 11:24:18 0200
From: Hannu Krosing <hannu@estib.ee>
MIME-Version: 1.0
To: blape@utk.edu (Bryon S. Lape)
CC: postgres95@postgres.Berkeley.EDU
Subject: RE: Whole-word matching
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Resent-To: postgres95-redist
Resent-Date: Thu, 09 Nov 95 01:26:01 -0800
Resent-From: pglite
Resent-XMts: smtp

>        Well, I have tried both Robert Patrick's and David Smith's replies
>to my question on whole word searching and now I am even more frustrated.
>On some words (like war) that appear at the end of a title, it searchs fine,
>but when I use a 'scenes' it does not.  If you want to check in out, point
>at http://toltec.lib.utk.edu/~music/forms/Anthology_Form.html and ignore any
>debugged' stuff (like printing out the SQL code generated).  

It's just a guess ot of thin air, but could it be that the pstgres strings are not zero-terminated
but the regex library wants them to be?

so it could be that there is actually an alphabetic character after the 'scenes' in memory
and that causes the regex to fail.

There is quite nice regex capability embedded in python (http://www.python.org), that could 
probably be used (just one more hint (as somebody suggested regex code from perl ))

Hannu Krosing / hannu@estib.ee

===============================================================================
  To unsubscribe from the Postgres95 mailing list, send mail with the subject
  line "DEL" to "postgres95-request@postgres.Berkeley.EDU". 
============  URL: http://s2k-ftp.CS.Berkeley.EDU:8000/postgres95/  ===========
