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

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
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("^.* ", "")