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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -