Need a help in regexp
От | Nicholas I |
---|---|
Тема | Need a help in regexp |
Дата | |
Msg-id | k2oe13d0d11005060748l4eaf0ac2g9b1db464c524b8e4@mail.gmail.com обсуждение исходный текст |
Ответы |
Re: Need a help in regexp
Re: Need a help in regexp |
Список | pgsql-sql |
<span style="display: block; padding-left: 6em;"><span></span></span>Hi,<br /><br />Need a help in regexp!<br /><br />I havea table in which the data's are entered like,<br /><br />Example:<br /><br />One (1)<br />Two (2)<br />Three (3)<br /><br/>I want to extract the data which is only within the parentheses.<br /><br />that is <br />1<br />2<br /> 3<br /><br/>i have written a query, <br /><b>select regexp_matches(name,'([^(]+)([)]+)','g') from table;</b><br />which outputsthe data as, <br />{"test"}<br />{"test2"}<br /><span style="display: block; padding-left: 6em;"><span></span></span><br/><br />Thank You<br /><font color="#888888">Nicholas I</font><span style="display: block; padding-left:6em;"><span></span></span><span style="display: block; padding-left: 6em;"><span></span></span>
В списке pgsql-sql по дате отправления: