Skip to Content

Regex In SFTP adaptor filename

HI Experts

I've got a file on a sftp server, image 1:

cusersgeorge-applegatedesktopimage1.png

I've written the below regex:

cusersgeorge-applegatedesktopimage-2.png

But I still cant seem to pick up the file and the logs suggest im connected ok but its not seeing the file:

cusersgeorge-applegatedesktopimage3.png

What am I doing wrong with my regex?

Im hoping to use pgp to decrypt and mtb to read the file.

THanks

George.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • Best Answer
    avatar image
    Former Member
    Jul 10, 2017 at 09:17 AM

    Hi George,

    Try using the following pattern in channel:

    .*NC4.*EXPORT.*\.asc

    or

    .*NC4.EXPORT.*\.asc

    These two patterns are as per your screenshot. This should work.

    Thanks- Lokesh

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 03, 2017 at 10:45 AM

    Ive tried

    *(MITIE).(NC4).(EXPORT)*

    for the filename, but I still get a error '

    Directory under file Path returned 604. These include directories and links.'

    Anyone?

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 30, 2017 at 09:55 AM

    can you check if your regex is working or not with some third party tool?

    http://regexpal.com.s3-website-us-east-1.amazonaws.com/

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 03, 2017 at 03:21 PM

    I've also tried

    MITIE.NC4.EXPORT................................................TXT

    which should work, as it says its a match but doesn't pick up the file !

    Your help required, please

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 03, 2017 at 03:48 PM

    Get error@

    Directory under file Path returned 579. These include directories and links.

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 09, 2017 at 11:45 AM

    Can anybody assist>?

    Add comment
    10|10000 characters needed characters exceeded