Using evaluate for regexp_replace in OBIEE — Oracle Analytics

Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

Using evaluate for regexp_replace in OBIEE

Received Response
333
Views
2
Comments
Rohit Trehan
Rohit Trehan Rank 3 - Community Apprentice

Hi OBIEE folks,

My goal is to use evaluate to incorporate regexp_replace to clean up a name column in the report.

Below is my expression.

select

regexp_replace('John, Doe','[[:punct:]]',' ')  col_name

dual;

Can one you evangelists precisely suggest the evaluate syntax I can use ? I'd really appreciate the help,

Also please suggest any parameters that I need to change in order to use the EVALUATE.

I know there is a lot of stuff online however I would like to hear from someone who has actually implemented this himself/herself.

Thanks a lot !

Answers

  • ArijitC
    ArijitC Rank 6 - Analytics Lead

    EVALUATE('regexp_replace(%1,%2,%3)' AS CHAR,"Cost Center Attribute"."OWNER",'[[:punct:]]','') 

    pastedImage_0.png

  • Rohit Trehan
    Rohit Trehan Rank 3 - Community Apprentice

    It was helpful, but the accurate answer is:

    EVALUATE('regexp_replace(%1,%2,%3)' AS CHAR,<OBIEE Column Name>,'[[:punct:][:space:]]+',' ')