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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Regex expresssion within tfilter

Hi,
How can I implement a java regex expression into a tfilter for an input field :-
\d{4}\-\d{3}T\d{2}\:\d{2}\:\d{2}\.\d{3}
I have seen similar questions in the forum but not answers.
Thanks in advance,
Labels (3)
3 Replies
Anonymous
Not applicable
Author

In the tFilterRow component, check the "use advanced mode" checkbox.
This should allow you to input custom code to filter rows.
you can do something like
input_row.columnName1.matches("\d{4}\-\d{3}T\d{2}\:\d{2}\:\d{2}\.\d{3}");

I hope this helps.
Anonymous
Not applicable
Author

Works perfectly - Thanks.
fyk_cz
Contributor
Contributor

In "simple" (not advanced mode) add a column for filter, select Match in Function list and type a regex expression in Value area. You must double a backslashes in regex string and don't forget doublequotes.