I have a string like this:
(1/8in Cap TBE ASME B1.20.1 (NPT) Male x Fem CL400 CU Alloy B152 Gr C10400 Cement Lined)
I need output like this:
1/8in Cap TBE ASME B1.20.1 (NPT) Male x Fem CL400 CU Alloy B152 Gr C10400 Cement Lined
i.e. only remove the brackets at the start and end not in the middle.
Also if the string is like this, either having starting bracket or closing bracket
(1/8in Cap TBE ASME B1.20.1 (NPT) Male x Fem CL400 CU Alloy B152 Gr C10400 Cement Lined
or
1/8in Cap TBE ASME B1.20.1 (NPT) Male x Fem CL400 CU Alloy B152 Gr C10400 Cement Lined)
then don't remove the brackets.
I tried using regexp_replace but couldn't find the solution. Any help will be appreciable