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: 
Anonymous
Not applicable

how to find Last index of the substring in a string?

hello,
if i have a string "hello how are you?test?12?are^&%^"
How to find the index of the last "?"
kindly suggest me for this issue ..
Thanks in advance
nilesh r
Labels (2)
6 Replies
Anonymous
Not applicable
Author

Method lastIndexOf(String str) of the String class 0683p000009MACn.png
Anonymous
Not applicable
Author

i dont have such option in string class . im using "talend open studio 4.1.1 r50363..
is there any other option to do so?
Anonymous
Not applicable
Author

Well, why not a little While loop with method indexOf(String str, int fromIndex) ? Or a For one, char by char. Can't tell you more 0683p000009MACn.png
janhess
Creator II
Creator II

If it's a Java project use stringname.lastIndexOf('?')
Anonymous
Not applicable
Author

i need to do the same inside tmap with some string function .because i have some process done inside my "tmap" .
Im beginner level in talend .pls suggest me..
janhess
Creator II
Creator II

i need to do the same inside tmap with some string function .because i have some process done inside my "tmap" .
Im beginner level in talend .pls suggest me..

So what do you want to do?