Re: Quick Regex Question - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: Quick Regex Question
Date
Msg-id 20071220110357.GD16113@svana.org
Whole thread Raw
In response to Re: Quick Regex Question  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Responses Re: Quick Regex Question
Re: Quick Regex Question
Re: Quick Regex Question
List pgsql-general
On Thu, Dec 20, 2007 at 11:51:34AM +0100, A. Kretschmer wrote:
> am  Thu, dem 20.12.2007, um 10:36:08 +0000 mailte Howard Cole folgendes:
> > Your expression works fine Richard, as does '(^| )ho', but can you tell
> > me why '[ ^]ho' doesn't work?
>
> With ^ you means an anchor, but within the brackets it's a simple char.

Err no, it inverts the test. [^ ] means any character *except* a space.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Those who make peaceful revolution impossible will make violent revolution inevitable.
>  -- John F Kennedy

Attachment

pgsql-general by date:

Previous
From: "A. Kretschmer"
Date:
Subject: Re: Quick Regex Question
Next
From: Karsten Hilbert
Date:
Subject: Re: Postgres 8.3 HOT and non-persistent xids