Re: Pattern Matching

From: Florian Aumeier <faumeier(at)mediaventures(dot)de>
To: "pgsql-de-allgemein(at)postgresql(dot)org" <pgsql-de-allgemein(at)postgresql(dot)org>
Subject: Re: Pattern Matching
Date: 2008-07-07 10:39:14
Message-ID: 4871F252.4080507@mediaventures.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-de-allgemein

Danke für die Hinweise, besonders an Michael.

Postgres hat den negativen und positiven lookahead implementiert und
damit funktioniert es so wie es soll.

SELECT 'http://feeds.wordpress.com' ~
E'^http://(?!feeds)[^.]+\\.wordpress\\.com';
?column?
----------
f
(1 row)

Und das zweite Beispiel ist true:

SELECT 'http://asbojesus.wordpress.com/2007/03/02/14/' ~
E'^http://(?!feeds)[^.]+\\.wordpress\\.com';
?column?
----------
t
(1 row)

Gruß
Florian

In response to

Browse pgsql-de-allgemein by date

  From Date Subject
Next Message Albe Laurenz 2008-07-07 12:03:32 Re: Pattern Matching
Previous Message Thomas Markus 2008-07-07 10:13:52 Re: Pattern Matching