I got this query and want to extract the value between the brackets.
select de_desc, regexp_substr(de_desc, \'\\[(.+)\\]\', 1) from DATABASE where col_name l
You need to do a replace and use a regex pattern that matches the whole string.
select regexp_replace(de_desc, '.*\[(.+)\].*', '\1') from DATABASE;