X-Original-To: pgsql-sql-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 4B7629FB3AC for ; Tue, 5 Sep 2006 13:11:57 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 27490-04-5 for ; Tue, 5 Sep 2006 16:11:42 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.178]) by postgresql.org (Postfix) with ESMTP id 2E9CD9FB39C for ; Tue, 5 Sep 2006 13:10:17 -0300 (ADT) Received: by py-out-1112.google.com with SMTP id d80so3180342pyd for ; Tue, 05 Sep 2006 09:10:17 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=WjxlxPIs4ejuesUnb44+0FX7IDg7ndBV2XhxU/a+vF/IfosAlvWFikQqUTp6emJ6wPLokTAXefhMDQefhOQSuKqy/IqF6y9qa4H+g+9+fV/3WJXPa/scCBTFTk/zXpltZso594t7nCGOthhODZblqIrYFv/73k88QgHAKFpexfU= Received: by 10.35.14.1 with SMTP id r1mr10331238pyi; Tue, 05 Sep 2006 09:10:16 -0700 (PDT) Received: by 10.35.80.9 with HTTP; Tue, 5 Sep 2006 09:10:16 -0700 (PDT) Message-ID: Date: Tue, 5 Sep 2006 11:10:16 -0500 From: "Aaron Bono" To: "Mario Splivalo" , pgsql-sql@postgresql.org Subject: Re: Postgres regexp matching failure? In-Reply-To: <20060905151722.GD21195@alvh.no-ip.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_57719_1322831.1157472616759" References: <1157451491.27799.6.camel@localhost.localdomain> <1157465870.27799.39.camel@localhost.localdomain> <20060905142115.GC21195@alvh.no-ip.org> <1157468633.10784.0.camel@localhost.localdomain> <20060905151722.GD21195@alvh.no-ip.org> X-Google-Sender-Auth: 96d2eacb50ebe9f6 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.574 tagged_above=0 required=5 tests=DNS_FROM_RFC_ABUSE, HTML_30_40, HTML_MESSAGE, SPF_PASS X-Spam-Level: X-Archive-Number: 200609/30 X-Sequence-Number: 26241 ------=_Part_57719_1322831.1157472616759 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 9/5/06, Alvaro Herrera wrote: > > > In Perl at least, \b is a word boundary. In PostgreSQL (and probably > Tcl as well) it's a backslash AFAICT. More specifically, Perl, Java and Python interpret \b as a backspace in the Character class only (got that from the Regular Expression pocket reference) but otherwise are word boundries. I am not entirely sure what the Character class context is referring to but it does show that \b is interpreted differently under different contexts. PostgreSQL may not have a way (or at least a very good way) to make this distinction. Any other thoughts? ================================================================== Aaron Bono Aranya Software Technologies, Inc. http://www.aranya.com http://codeelixir.com ================================================================== ------=_Part_57719_1322831.1157472616759 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 9/5/06, Alvaro Herrera <alvherre@commandprompt.com> wrote:

In Perl at least, \b is a word boundary.  In PostgreSQL (and probably
Tcl as well) it's a backslash AFAICT.

More specifically, Perl, Java and Python interpret \b as a backspace in the Character class only (got that from the Regular Expression pocket reference) but otherwise are word boundries.  I am not entirely sure what the Character class context is referring to but it does show that \b is interpreted differently under different contexts.  PostgreSQL may not have a way (or at least a very good way) to make this distinction.

Any other thoughts?

==================================================================
   Aaron Bono
   Aranya Software Technologies, Inc.
   http://www.aranya.com
   http://codeelixir.com
================================================================== ------=_Part_57719_1322831.1157472616759--