Re: Quick Regex Question - Mailing list pgsql-general

From Florian Aumeier
Subject Re: Quick Regex Question
Date
Msg-id 476A3F80.5020004@mediaventures.de
Whole thread Raw
In response to Quick Regex Question  (Howard Cole <howardnews@selestial.com>)
List pgsql-general
hi
> select 'Ho Ho Ho' ~* '^Ho'; returns true
> select 'Ho Ho Ho' ~* ' Ho'; returns true
> select 'Ho Ho Ho' ~* '[^ ]Ho'; returns false (Please note there is a
> space between ^ and ])

"A /bracket expression/ is a list of characters enclosed in []. It
normally matches any single character from the list (but see below). If
the list begins with ^, it matches any single character /not/ from the
rest of the list."

from:
http://www.postgresql.org/docs/8.3/static/functions-matching.html#POSIX-BRACKET-EXPRESSIONS

Regards
Florian

--
Media Ventures GmbH
Jabber-ID faumeier@mabber.de
Telefon +49 (0) 2236 480 10 22


pgsql-general by date:

Previous
From: Howard Cole
Date:
Subject: Quick Regex Question
Next
From: Richard Huxton
Date:
Subject: Re: Quick Regex Question