Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Removing characters before first occurence of space using tMap

Hi Guys,
I just wanted to ask if is it possible to remove all the characters before the first occurrence of space in a string using tMap?
For example:
Input: "This is a sentence"
Ouput" "is a sentence"
Thanks! 0683p000009MACJ.png
Labels (2)
2 Replies
cterenzi
Specialist
Specialist

Assuming your string column is named "col1", set your output column to: row1.col1. substring ( row1.col1 . lastIndexOf ( ' ' )+ 1 )
TRF
Champion II
Champion II

Variation : row1.col1.replaceAll("^.* ", "")