How to Remove Special Character

One Star

How to Remove Special Character

Hi Team,
can any one help me how to remove special characters from a string under a particular column.
I want to read complete string and  replace "(" with "".
I have a data like below
CELL_PH_NO
(999)-000-1111
999 222 1111
now i wan output as
CELL_PH_NO
999-000-1111
999-222-1111

Thank you so much in advance
Four Stars

Re: How to Remove Special Character

Hi,
you can use replaceAll
string.replaceAll("(","");
Regards,
Anu
One Star

Re: How to Remove Special Character

Hi ,
row1.CELL_PH_NO.replaceALL("","")
Regards,
Kumar

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog