Skip to Content

Regular expression for excluding files in SFTP adapter

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Jul 21, 2016 at 03:13 PM
    • \\*_hot.*

    • \\*_bad.*

    Give these under exclusion mask

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 21, 2016 at 02:48 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 21, 2016 at 09:01 PM

    Hi Pavan,

    you can use something like

    file mask .+.xml.asc

    exclusion mask .+._bad.xml.asc|.+._hot.xml.asc


    Capture.JPG (23.1 kB)
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.