write a routine to remove special characters

Seven 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.
Seven 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.

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 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

APIs for Dummies

View this on-demand webinar about APIs....

Watch Now