Replace a number in formula

User: "Vaughn"
Altair Community Member
Updated by Vaughn
Is it possible to replace a Number 0-9 and make it a "X"?

Something like 

RegexReplace([Last Initial],"0-9","X") 

I know I can do Replace([Last Initial],"1","X")

However, I need to do all numbers.

------------------------------
Vaughn Mitchell
Data Analyst
Avera Health
NA
555-5555
------------------------------

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "Ermela"
    Altair Employee
    Accepted Answer
    Updated by Ermela
    Hi Vaughn,

    If you are using Data Prep Studio, you can use the Redact function.  Right-click on the column you are replacing numbers with Xs then click Redact.  It will give different options for removing numbers.

    If you are using Classic, you can create a calculated field using this function RegexReplace([column name],'\d','X') or RedactStrikeoutDigits([column name],'X') and hide/remove the original column.

    Hope this helps,
    Mela

    ------------------------------
    Mela Sarenas
    Software Quality Manager
    Datawatch Corporation
    Bedford MA
    + 1.800.445.3311
    ------------------------------
    -------------------------------------------
    Original Message:
    Sent: 01-30-2019 04:56 PM
    From: Vaughn Mitchell
    Subject: Replace a number in formula

    Is it possible to replace a Number 0-9 and make it a "X"?

    Something like

    RegexReplace([Last Initial],"0-9","X")

    I know I can do Replace([Last Initial],"1","X")

    However, I need to do all numbers.

    ------------------------------
    Vaughn Mitchell
    Data Analyst
    Avera Health
    NA
    555-5555
    ------------------------------"