on 07-21-2016 3:36 PM
Hi,
I am using SFTP sender adapter to pick the files where i am having requirement pick some files and exclude some files.
I need to pickup the files with this name (.xml.asc) such as WPS_SIB_00000250_SH010100010001.xml.asc
and excludes the files which ends with _hot.xml.asc, _bad.xml.asc
WPS_SIB_00000250_SH010100010001_hot.xml.asc
WPS_SIB_00000250_SH010100010001_bad.xml.asc
Please suggest regular expression for excluding _hot.xml.asc, _bad.xml.asc these files.
Regards
Pavan
Give these under exclusion mask
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try as per Manoj suggestion,For more details check the below link
You can easily try using a regex tester like this one: Regex Tester and Debugger Online - Javascript, PCRE, PHP
This regex should work: .*\d\.xml\.asc
It means:
.* = any character or nothing
\d = a digit
\. = perdiod
-->This will only capter files with a number right before ".xml.asc"
Thanks Heiko it also got worked..
How can i test here can you please suggest as i am not aware of regular expressions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pavan,
If my guess is right, you are using PI 7.3. In SFTP adapter there will be a check box "additional files"
, In that we can give a condition trigger file.name part.
Regards,
Gopi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.