Hi Liversen,
I think I know what you want to do, basically it looks like you want to recursive search through files the same way a web crawler searches through web sites. I've included the code for you to do this (in C#) along with this regular expression:
(?i)\b\S*?\.bin\b
the (?i) is the case insensitive modifier in case you encounter a BIN, Bin or biN.
\S is the negation for whitespace (i.e. everything, but whitespaces)
*? - is the non-greedy matching, it will match until the first instance of .bin
Here's a good tutorial website that I use for regular expressions:
http://www.codeproject.com/KB/dotnet/regextutorial.aspxThe list of files will be stored in a generic List of string (or List
), which is cleared in the CallingFunction and dumped out after ProcessFile is finished its recursive run. I think you can figure the rest out from this. :)
Enjoy, hope this helps.
P.