Suppose I have a string like this:
str = 'Concat(((("function_test"."PRODUCT_CATEGORIES"."CATEGORY_NAME" ), ("function_test"."PRODUCT_CATEGORIES"."CATEGORY_NAME" )) ))'
I get the contents within concat function as
((("function_test"."PRODUCT_CATEGORIES"."CATEGORY_NAME" ), ("function_test"."PRODUCT_CATEGORIES"."CATEGORY_NAME" )) )
Now I want to remove the round brackets present in str and output should be
"function_test"."PRODUCT_CATEGORIES"."CATEGORY_NAME" , "function_test"."PRODUCT_CATEGORIES"."CATEGORY_NAME"
This is what I have tried:
res= str.strip().replace('(','').replace(')','')
Is there any better approach I can follow to get the required output. Please help