From: | Nicholas I <nicholas(dot)domnic(dot)i(at)gmail(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Fwd: Need a help in regexp |
Date: | 2010-05-06 14:53:01 |
Message-ID: | l2se13d0d11005060753gae1c4069j167a659a28213d5d@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-sql |
---------- Forwarded message ----------
From: Nicholas I <nicholas(dot)domnic(dot)i(at)gmail(dot)com>
Date: Thu, May 6, 2010 at 8:18 PM
Subject: Need a help in regexp
To: pgsql-sql(at)postgresql(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Thom Brown | 2010-05-06 15:03:14 | Re: Fwd: help on postgres regexp |
Previous Message | Nicholas I | 2010-05-06 14:52:36 | Fwd: help on postgres regexp |
From | Date | Subject | |
---|---|---|---|
Next Message | A. Kretschmer | 2010-05-06 15:04:47 | Re: Need a help in regexp |
Previous Message | Nicholas I | 2010-05-06 14:48:26 | Need a help in regexp |