Re: [GENERAL] Regex problems

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: charles(dot)h(dot)curley(at)lmco(dot)com (Charles Curley)
Cc: pgsql-general(at)postgreSQL(dot)org
Subject: Re: [GENERAL] Regex problems
Date: 1998-10-07 02:46:50
Message-ID: 199810070246.WAA07583@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Ivar Helbekkmo 1998-10-07 06:48:24 Re: [GENERAL] status on IPv6 implementation...
Previous Message Bruce Momjian 1998-10-07 02:43:33 Re: [GENERAL] status on IPv6 implementation...