find and replace the string within a column - Mailing list pgsql-sql

From Nicholas I
Subject find and replace the string within a column
Date
Msg-id AANLkTi=yv6typUZDxhOjufJj2jua=OXb7cM8Lq86tRuv@mail.gmail.com
Whole thread Raw
Responses Re: find and replace the string within a column  (Jayadevan M <Jayadevan.Maymala@ibsplc.com>)
Re: find and replace the string within a column  (Craig Ringer <craig@postnewspapers.com.au>)
List pgsql-sql
Hi, <br /><br />the data in my table, have a substring enclosed in parenthesis, <br /><br />1. i want to replace the
stringwith the brackets to null or any other value.<br />2. remove the contents within brackets.<br /><br />Example:
<br/> table name person:<br /><br />name<br />------------------------------------<br />Samuel (S/o Sebastin )<br
/>-------------------------------------<br/><br />remove the word within the brackets.<br />the output should be ,
Samuel.<br/><br /> the below one help's me to find the data within the two brackets.<br /><br />SELECT
name,(REGEXP_MATCHES(name,E'\\(.+?\\)'))[1] from person;<br />regexp_matches<br />
------------------------------------<br/> (S/o Sebastin )<br /> -------------------------------------<br /><br
/>-NicholasI<br /><br /><br /> 

pgsql-sql by date:

Previous
From: Rob Sargent
Date:
Subject: Re: pg_config -less
Next
From: Jayadevan M
Date:
Subject: Re: find and replace the string within a column