cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Exclusion mask issue in SFTP adapter

muralichittem
Explorer
0 Likes
467

Exclusion mask issue in SFTP sender channel

I have a requirement, for 2 SFTP sender channels:

1) Select only files which do not contain the string TEST anywhere in the filename(Exclusion mask )

2) Select only files containing the string TEST anywhere in the filename(File name mask)

From same source directory I need to pick the files

For the 1St case I am using Exclusion mask to exclude files such as TEST1,TEST2,TEST3,TEST4 and TEST5 I have given all these in Exclusion mask by one by one

For the 2Nd case I have given TEST1 ,TEST2 under File name mask such as .*TEST1.*

FileName: .*(dot *)

.*TEST2.*

It is working well(File name mask). But Exclusion mask is not working as expected.

I tried with couple of regex expressions but none of these are working.

Filename: .*(dot*)

(?<!TEST1).*\\.*

^(?!.*TEST1).*

Please suggest me regular expression to exclude files.

Can someone please suggest what changes I need to make in Exclusion mask to avoid picking the files?

Thanks,

Vidya

Accepted Solutions (0)

Answers (0)