Re: [GENERAL] Regular Expression Data Type

2007-04-21 Thread Michael Glaesemann
On Apr 21, 2007, at 11:01 , Richard Doust wrote: select price from shipping_prices where shipFromZip = '23773' and shipToZip ~ '87927' because shipToZip is defined as a regular expression, I'd match a row where shipToZip held the value '879[0-9]{2,2}' or '87[0-9]*'. Wouldn't that be cool

Re: [GENERAL] Regular Expression Data Type

2007-04-21 Thread Tom Lane
Richard Doust <[EMAIL PROTECTED]> writes: > What I'd like to be able to do is to define a field in the database > as a regular expression so that when I select, i.e., > select price from shipping_prices where shipFromZip = '23773' and > shipToZip ~ '87927' > because shipToZip is defined as a

[GENERAL] Regular Expression Data Type

2007-04-21 Thread Richard Doust
Hi. I appreciate that I can query the database and find records that match a regular expression. What I'd like to be able to do is to define a field in the database as a regular expression so that when I select, i.e., select price from shipping_prices where shipFromZip = '23773' and shipTo