Re: [GENERAL] Regex problems - Mailing list pgsql-general

From Bruce Momjian
Subject Re: [GENERAL] Regex problems
Date
Msg-id 199810070246.WAA07583@candle.pha.pa.us
Whole thread Raw
In response to [GENERAL] Regex problems  (Charles Curley <charles.h.curley@lmco.com>)
List pgsql-general
> select "dept", "last", "first" from "employees" where "last" ~ 'C*';

You want:

> select "dept", "last", "first" from "employees" where "last" ~ '^C';

or

> select "dept", "last", "first" from "employees" where "last" ~ '^C.*';

--
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026


pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [GENERAL] status on IPv6 implementation...
Next
From: Tom Ivar Helbekkmo
Date:
Subject: Re: [GENERAL] status on IPv6 implementation...