How to make a Regex researcher with asterisk -
does know how make regex researcher asterisk character in windows os?
example: *.pdf -> find pdf files.
i've been trying snippet i' not quite sure if quite strong:
ftp.ftpclient ftp = new ftp.ftpclient("ftp://myservices.com/","username", "pass"); regex reg = new regex(@"hi"); string[] filesarray = ftp.listdirectory("/path/").where(filename => reg.ismatch(filename)).toarray();
instead of using *.pdf
, try using (.*)pdf
. in other words, replace *
(.*)
, see if works.
Comments
Post a Comment