write a routine to remove special characters

Six Stars

write a routine to remove special characters

Hi Team,

 

I have a row which contain data mix with some special characters.need a java code to filter them.

please help me for both string and integer data types

 

Thanks

Moderator

Re: write a routine to remove special characters

Hello,

Could you please elaborate your case with an example with input and expected output values?

Best regards

Sabrina

 

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Six Stars

Re: write a routine to remove special characters

i want to create a routine to check whether this row has special characters and remove them .

i know that i can do it by using:

ReplaceAll() 

but want a routine to check for row whose type is string or integer.

row1.data

nme(int)| plc(str)

1*2!@|" fff#@  "

want to remove all the special as well as spaces and empty string and append word

 

Moderator

Re: write a routine to remove special characters

Hello,

Could you please let us know if this topic:https://community.talend.com/t5/Design-and-Development/Regex-Expression-in-tmap/m-p/39391 helps?

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

Cloud Free Trial

Try Talend Cloud free for 30 days.

Tutorial

Introduction to Talend Open Studio for Data Integration.

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.