RegEx and File Name

P

PSULionRP

I'm thinking I want to use RegEx to validate a file name. We have files in an
FTP site and we want to make sure the file name contains the word "sample".
Can anyone clue me in to the syntax needed in VB in order to accomplish this??

Thanks in advance for your review and hopeful for a reply.

PSULionRP
 
A

Andrew Morton

PSULionRP said:
I'm thinking I want to use RegEx to validate a file name. We have
files in an FTP site and we want to make sure the file name contains
the word "sample". Can anyone clue me in to the syntax needed in VB
in order to accomplish this??

If theFileName.Contains("sample") then...

Andrew
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top