[fpc-pascal] findfirst wildcards...

Jonas Maebe jonas.maebe at elis.ugent.be
Wed Dec 3 09:41:26 CET 2014


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



More information about the fpc-pascal mailing list