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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

check if string contains a substring

hello every body,
i have juste a small question , how can i check  if string contains substring in talend 
Labels (2)
3 Replies
Anonymous
Not applicable
Author

You can make use of any of the Java methods available. You might want to look at "indexOf" (http://docs.oracle.com/javase/7/docs/api/java/lang/String.html#indexOf(java.lang.String))
Anonymous
Not applicable
Author

you can use below function to check.. 
"String".contains("SubString")

Have look on StringHandling Routine it has many functions related to string operations.
Anonymous
Not applicable
Author

I have an example to show the filter based on the conditional setting by using tmap. You can see this on Youtube at -

Talend ETL - Check If String Contains Substring Using tmap Component

https://youtu.be/TrM0EK715FQ

 

Hope it will work for you.

 

Thanks,

Mac