Re: regular expression question

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: regular expression question
Дата
Msg-id 20030604200031.GA16777@wolff.to
обсуждение исходный текст
Ответ на regular expression question  (Joel Rodrigues <borgempath@Phreaker.net>)
Список pgsql-general
On Thu, Jun 05, 2003 at 00:10:18 +0530,
  Joel Rodrigues <borgempath@Phreaker.net> wrote:
> Hi,
> I'm trying to write a check on a column restricting the data to
> numerals from 0-9, commas,  dashes '-' and single spaces. To
> allow the entry of something like "134-140, 310-312".
>
> I seem to have got everything but the single spaces.
>
> '^[0-9|,-]{0,10}$'

How about:
'^[-0-9, ]*$'

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

Предыдущее
От: Joel Rodrigues
Дата:
Сообщение: regular expression question
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: libpgeasy.h and 7.3.2