cancel
Showing results for 
Search instead for 
Did you mean: 

Regex In SFTP adaptor filename

former_member233999
Participant
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

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

former_member233999
Participant
0 Kudos

Thankyou so much Lokesh!

Answers (5)

Answers (5)

former_member233999
Participant
0 Kudos

Can anybody assist>?

former_member233999
Participant
0 Kudos

Get error@

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

former_member233999
Participant
0 Kudos

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

former_member233999
Participant
0 Kudos

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?

Muniyappan
Active Contributor
0 Kudos

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/