Mainpage | Getting Started | Advanced Info | HOW-TOs | FAQ
The filename parser Filename parser is an internal non-visual component of jv16 PowerTools. It is mainly used in the File Tool and in the Temp File Tool. Theory A file mask is a description what kind of files you want to be found. The file mask supports so called simple wildcards ('*' and '?'). '*' represents many letters and '?' only a one letter. You can define multiple filemasks with the semicolon (';'). For example: '*.txt;*.doc;*.rtf' finds all .txt, .doc and .rtf files. The filemask is not case sensitive. The parser also supports exclusion filemasks, for example: '*.* -*.exe -*.dll' finds all files except .exe and .dll files. You could also format the same mask as: '*.*; -*.exe; -*.dll;'. Notice the space before the minus ('-') symbol. Examples
Mask | Filenames | Finds
*.* | test.dat, test.txt | test.dat, test.txt
*.dat | test.dat, test.txt | test.dat
*.dat;*.txt | test.dat, test.txt | test.dat, test.txt
test.* | test.dat, test.txt | test.dat, test.txt
test.dat | test.dat, test.txt | test.dat
test.?at | test.dat, test.txt | test.dat
*.* -*.dat | test.dat, test.txt | test.txt
*.*; -*.dat; | test.dat, test.txt | test.txt
*tes* | test.dat, test.txt | test.dat, test.txt
?.dat | test.dat, test.txt | Nothing
*.? | test.dat, test.txt | Nothing
Topics
The filename parser
Theory
Examples
.:: Copyright 2001-2003 Jouni Vuorio