Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All ,
How can we replace multiple special characters or chain the replaceAll statement.
For eg :
I want to replace ß with s
and ° with ?
in the same column
is there any chaining which we could do ?
For eg :
Just 1 tMap with the following expression is enough:
(row1.theStringYouWishToTransform.replaceAll("ß", "s")).replaceAll("°", "?")
If you don't have anything else to do inside the tMap, a single tJavaRow is better:
output_row.theStringYouWishToTransform = (input_row.theStringYouWishToTransform.replaceAll("ß", "s")).replaceAll("°", "?");
Just 1 tMap with the following expression is enough:
(row1.theStringYouWishToTransform.replaceAll("ß", "s")).replaceAll("°", "?")
If you don't have anything else to do inside the tMap, a single tJavaRow is better:
output_row.theStringYouWishToTransform = (input_row.theStringYouWishToTransform.replaceAll("ß", "s")).replaceAll("°", "?");
@karandama2006, does this help?
If so, thank's to mark your case as solved.
Yes it helps , Thank you