Re: Regular expression problem

Поиск
Список
Период
Сортировка
От Manuel Sugawara
Тема Re: Regular expression problem
Дата
Msg-id m38ynapkkp.fsf@conexa.fciencias.unam.mx
обсуждение исходный текст
Ответ на Re: Regular expression problem  ("scott.marlowe" <scott.marlowe@ihs.com>)
Ответы Re: Regular expression problem  ("scott.marlowe" <scott.marlowe@ihs.com>)
Список pgsql-sql
"scott.marlowe" <scott.marlowe@ihs.com> writes:

> It certainly seems to work in Postgresql 7.4 beta 4:
> 
> create table test2 (info text);
> CREATE TABLE
> insert into test2 values ('ab');
> INSERT 109169538 1
> insert into test2 values ('abc');
> INSERT 109169539 1
> 
> marl8412=# select * from test2 where info ~ '^[a-z]{2}$';
>  info
> ------
>  ab
> 
> Or was there more to that message I wasn't getting?

He was trying to use '[a-z]{2,2}', which doesn't work in PostgreSQL.

Regards,
Manuel.



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

Предыдущее
От: "scott.marlowe"
Дата:
Сообщение: Re: Regular expression problem
Следующее
От: Alexander Vlasenko
Дата:
Сообщение: extend INSERT by 'INSERT INTO table FETCH ... FROM cursor' syntax