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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
settu_periasamy
Master III
Master III

Replace with String Contains

Hi,

I need to replace the string based on between the values(like textbetween). see the example below.

Need to replace the String ': * |' as blank. (note :  '*' contains any length)

FieldOne: raja | FieldTwo: India | FieldThree: Calculated |

result should be :

FieldOne FieldTwo FieldThree

i tried the below expression

'=replace('FieldOne: raja | FieldTwo: India | FieldThree: Calculated |',':'&chr(42)&'|',' ')

Thank You.

12 Replies
settu_periasamy
Master III
Master III
Author

It is working fine Daniel. But the problem is , Only three strings displayed.

Thank you. I'm closing this Discussion

jagan
Partner - Champion III
Partner - Champion III

Hi Sethu,

Copy the string into a variable and use that variable in the expression.  If your string is dynamic like 4, 5 , 6 values then trying this in script is the best option.

Regards,

Jagan.

settu_periasamy
Master III
Master III
Author

Ok Jagan. I will do like that.