pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Aaron Bono <postgresql@aranya.com>
To: Mario Splivalo <mario.splivalo@mobart.hr>
To: pgsql-sql@postgresql.org
Subject: Re: Postgres regexp matching failure?
Date: Tue, 5 Sep 2006 11:10:16 -0500
Message-ID: <bf05e51c0609050910k226fe36frbbfbe14db34a6b9d@mail.gmail.com> (raw)
In-Reply-To: <20060905151722.GD21195@alvh.no-ip.org>
References: <1157451491.27799.6.camel@localhost.localdomain>
	<bf05e51c0609050642p590b8a7euc581ffd52119e4ce@mail.gmail.com>
	<1157465870.27799.39.camel@localhost.localdomain>
	<20060905142115.GC21195@alvh.no-ip.org>
	<1157468633.10784.0.camel@localhost.localdomain>
	<20060905151722.GD21195@alvh.no-ip.org>

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
==================================================================

view thread (11+ messages)  latest in thread

Message-ID: <bf05e51c0609050910k226fe36frbbfbe14db34a6b9d@mail.gmail.com>
Permalink:  ../bf05e51c0609050910k226fe36frbbfbe14db34a6b9d@mail.gmail.com/
Also on:    postgresql.org/message-id/bf05e51c0609050910k226fe36frbbfbe14db34a6b9d@mail.gmail.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: postgresql@aranya.com, mario.splivalo@mobart.hr
  Subject: Re: Postgres regexp matching failure?
  In-Reply-To: <bf05e51c0609050910k226fe36frbbfbe14db34a6b9d@mail.gmail.com>

* 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