Re: Looking for types: phone number, email addresses

Поиск
Список
Период
Сортировка
От Oliver Elphick
Тема Re: Looking for types: phone number, email addresses
Дата
Msg-id 1027086463.9743.373.camel@linda
обсуждение исходный текст
Ответ на Looking for types: phone number, email addresses  (Stephane Bortzmeyer <bortzmeyer@nic.fr>)
Ответы Re: Looking for types: phone number, email addresses  (Stephane Bortzmeyer <bortzmeyer@nic.fr>)
Список pgsql-general
On Fri, 2002-07-19 at 12:52, Stephane Bortzmeyer wrote:
> Lazy programmer is looking for implementation of the following
> datatypes:
>
> * phone (or fax) numbers (with format checking) like +33 1 39 30 83 46

CHECK (phone ~ '^\\+33 [0-9]( [0-9]{2}){4}$')

That's only good for French numbers, since only France uses that
grouping of digits for phone numbers.  (Which is why +33 is explicit.)

--
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight, UK
http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C
                 ========================================
     "Blessed is the man that trusteth in the LORD, and
      whose hope the LORD is."            Jeremiah 17:7


В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [SQL] id and ID in CREATE TABLE
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Problem using ?# with polygon