[resolved] Regular Expressions on Talend (Filemask, for example)

One Star

[resolved] Regular Expressions on Talend (Filemask, for example)

Hi,
What kind of expressions does the 'Filemask' field on tFTPFileList component expects?
Are they the common regex's? I want to find files that contain a particular word in their names, and the expression ".*"+"word"+".*" seems to don't work.
How can I look for a word in the file name?
Thanks.

Accepted Solutions
Six Stars

Re: [resolved] Regular Expressions on Talend (Filemask, for example)

File mask filed expects the file name or file name pattern that you want to list or download.
In file mask there is no need to break the contents.
If you want to find files with a specific word in their names, then enter the expression "*word*".
I notice that you have entered "." as well. Is that part of your word? If so, "*.word.*" would do.
This should hopefully solve your issue.

Thanks,
Remy

All Replies
Six Stars

Re: [resolved] Regular Expressions on Talend (Filemask, for example)

File mask filed expects the file name or file name pattern that you want to list or download.
In file mask there is no need to break the contents.
If you want to find files with a specific word in their names, then enter the expression "*word*".
I notice that you have entered "." as well. Is that part of your word? If so, "*.word.*" would do.
This should hopefully solve your issue.

Thanks,
Remy
One Star

Re: [resolved] Regular Expressions on Talend (Filemask, for example)

Yes, "*word*" solved my problem.
Thanks

What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch

Downloads and Trials

Test drive Talend's enterprise products.

Downloads