Fwd: Need a help in regexp

Поиск
Список
Период
Сортировка
От Nicholas I
Тема Fwd: Need a help in regexp
Дата
Msg-id l2se13d0d11005060753gae1c4069j167a659a28213d5d@mail.gmail.com
обсуждение исходный текст
Список pgsql-general


---------- Forwarded message ----------
From: Nicholas I <nicholas.domnic.i@gmail.com>
Date: Thu, May 6, 2010 at 8:18 PM
Subject: Need a help in regexp
To: pgsql-sql@postgresql.org


Hi,

Need a help in regexp!

I have a table in which the data's are entered like,

Example:

One (1)
Two (2)
Three (3)

I want to extract the data which is only within the parentheses.

that is
1
2
3

i have written a query,
select regexp_matches(name,'([^(]+)([)]+)','g') from table;
which outputs the data as,
{"test"}
{"test2"}


Thank You
Nicholas I

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

Предыдущее
От: Nicholas I
Дата:
Сообщение: Fwd: help on postgres regexp
Следующее
От: Thom Brown
Дата:
Сообщение: Re: Fwd: help on postgres regexp