Re: RE in WHERE - Mailing list pgsql-general

From Jean-Luc Lachance
Subject Re: RE in WHERE
Date
Msg-id 3DA5D4A3.FEC89639@nsd.ca
Whole thread Raw
In response to RE in WHERE  (Patrick Nelson <pnelson@neatech.com>)
List pgsql-general
Double up on the back slashes.

SELECT * FROM secure WHERE ~ '^12\\.'


Patrick Nelson wrote:
>
> SELECT * FROM secure WHERE ~ '^12\.';
>
> displays
>
>     host
> -----------------
>  12.28.18.10
>  12.41.17.174
>  128.121.247.126
> ...
>
> Escaping the dot should only show the 12. entries right?  What is the proper
> RE for this?
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster

pgsql-general by date:

Previous
From: Patrick Nelson
Date:
Subject: RE in WHERE
Next
From: Jeff Eckermann
Date:
Subject: Re: RE in WHERE