regexp help

Started by Garry Saddingtonalmost 18 years ago3 messagesgeneral
Jump to latest
#1Garry Saddington
garry@schoolteachers.co.uk

I have the following simple regular expression:

"SELECT substring(addressline1 from '(^[0-9]+)') from addresses"

How could I find non-matches of this same pattern?
regards
Garry

#2Said Ramirez
sramirez@vonage.com
In reply to: Garry Saddington (#1)
Re: regexp help

You can probably use [^0-9]
-Said

Garry Saddington wrote:

Show quoted text

I have the following simple regular expression:

"SELECT substring(addressline1 from '(^[0-9]+)') from addresses"

How could I find non-matches of this same pattern?
regards
Garry

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

#3Charles Simard
tech@denarius.ca
In reply to: Garry Saddington (#1)
Re: regexp help

|> -----Original Message-----
|> From: pgsql-general-owner@postgresql.org
|> [mailto:pgsql-general-owner@postgresql.org]On Behalf Of
|> Garry Saddington
|> Sent: 9 juillet 2008 15:31
|> To: pgsql-general@postgresql.org
|> Subject: [GENERAL] regexp help
|>
|>
|> I have the following simple regular expression:
|>
|> "SELECT substring(addressline1 from '(^[0-9]+)') from addresses"
|>
|> How could I find non-matches of this same pattern?
|> regards
|> Garry
|>
|> --
|> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
|> To make changes to your subscription:
|> http://www.postgresql.org/mailpref/pgsql-general
|>

SELECT substring(addressline1 from '(^[^0-9]+)') from addresses

Cordialement,

Charles Simard