Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] how to remove more than one + symbol using tmap in talend DI

Hi,
how to remove more than one "+" symbol using tmap in talend DI
example
L+G+F+P  -->correct
but I'm having
L++++G++F+P ---->wrong

Appearance of ("+") is dynamic.

Pls find me a solution to fix this issue.
Any Suggestions....Thanks in advance.....

Thanks
Varsha K

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

This will work.....
row1.column.replaceAll("(\\+)\\1+","$1")


It uses a regex to replace multiple "+" symbols with a single instance wherever it occurs in the String.

View solution in original post

4 Replies
Anonymous
Not applicable
Author

Hello,
In your tmap, try this expression :
row1.col1.trim().replace("+","")
Anonymous
Not applicable
Author

Hi tdz,
Thanks for your reply
but  row1.col1.trim().replace("+","") replaces all "+" with "" -->LGFP
I need L+G+F+P   as output.


Thanks
Varsha K
Anonymous
Not applicable
Author

This will work.....
row1.column.replaceAll("(\\+)\\1+","$1")


It uses a regex to replace multiple "+" symbols with a single instance wherever it occurs in the String.
Anonymous
Not applicable
Author

Thanks Rilhia Solutions...
It works....