Talend Filter for Regex Match

Post date: Nov 25, 2015 9:29:34 AM

We always wonder is there any way to filter the rows through an output link in tMap component using regex. I came across this short trick with regex class which can be used in the filter expression of the tMap component for this.

Code :

java.util.regex.Pattern.compile("Regular Expression Here").matcher("Row.Column_With_Data").find()

Here if you are getting regular expression in an existing column, then the same can be used instead of hard coding.