RegEx and File Name

  • Thread starter Thread starter PSULionRP
  • Start date Start date
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
 
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
 
Back
Top