On 03 Dec 2014, at 06:05, waldo kitty wrote:

can you help me understand the differences in the output of the below program?

given these three filenames: t.txt t1.txt t11.txt

with mask t?.txt why does MatchesMaskList not show t.txt and t11.txt like plain findfirst?

"?" means "a single arbitrary character". findfirst with "t?.txt" should not match t.txt nor t11.txt either. On the other hand, "t*.txt" means "t followed by 0 or more arbitrary characters and ending in .txt". That should/will match both t.txt and t11.txt


Jonas
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to