Re: Quick Regex Question

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Quick Regex Question
Date: 2007-12-20 11:03:57
Message-ID: 20071220110357.GD16113@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)svana(dot)org> http://svana.org/kleptog/
> Those who make peaceful revolution impossible will make violent revolution inevitable.
> -- John F Kennedy

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Karsten Hilbert 2007-12-20 11:05:54 Re: Postgres 8.3 HOT and non-persistent xids
Previous Message A. Kretschmer 2007-12-20 10:51:34 Re: Quick Regex Question