I want to compare a filename with particular pattern or strings. Please suggest if there is a inbuilt function for the achieving this task.
Ex : file name having pattern of ".txt" or "HU.txt". Or two strings abc.txt and a*.txt.
I have to use this to get the list files from FTP so cannot use directory.getfiles(path,pattern).
My task is to download the files from FTP server which has the pattern as "HU*.txt" or can be "CZ*.txt" or can be sometimes "*.txt".
Please suggest.
Thanks