Re: regular expression question

Поиск
Список
Период
Сортировка
От scott.marlowe
Тема Re: regular expression question
Дата
Msg-id Pine.LNX.4.33.0306041429010.16396-100000@css120.ihs.com
обсуждение исходный текст
Ответ на regular expression question  (Joel Rodrigues <borgempath@Phreaker.net>)
Список pgsql-general
On Thu, 5 Jun 2003, Joel Rodrigues 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}$'

Try this:

'^[[:digit:][:space:],-]{0,10}$'




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

Предыдущее
От: "Vincent Hikida"
Дата:
Сообщение: Re: Nulls get converted to 0 problem
Следующее
От: wsheldah@lexmark.com
Дата:
Сообщение: Re: regular expression question