MASK Plugin for Sophisticated Rename 2.03 and later.
Version 1.1 (17 Apr 2005).

Allows to add wildcards feature to Sophisticated Rename 2.03.

Info: This method is obsolete. In some cases it's easier to use SR conditionals to sort out required files.

Installation: This distributive archive has the same folder structure as the main SR folder. So just copy all the files to the corresponding folders, for example, "external\mask.dll" to "c:\program files\sophisticated rename\external\mask.dll".

Function name: matchesmask
Result key: result
Parameters:
TYPE - what to do if a file matches/doesn''t match:
TYPE=LEAVE - Leave in the list only those files that match.
TYPE=REMOVE - Remove from the list files that match.
TYPE=CHECK - Check matches and uncheck those files that don''t match.
TYPE=UNCHECK - Uncheck matches and check those files that don''t match.
MASK - file wildcards (* and ?).

EXAMPLE: leave only all jpg files in the list:
TYPE=LEAVE|MASK=*.JPG

EXAMPLE: uncheck all avi files starting with 'p' letter:
TYPE=UNCHECK|MASK=p*.AVI

Notes: the search is case insensitive, it means that "boBER*.jpg" means the same as "BOber*.JPG". The names of keys are also case insensitive, you may write "type=UnCheck" or "Type=uncheck" or "type=uncheck" - all 3 versions are the same for the plugin.

Known issues: the plugin doesn't understand "*.*" in the meaning of "all files". This mask will not find files that have no extension at all. To find files without extension, use "*." mask.

Example:

Preset: mask
Files: tutorial\mask\*.*

02-redflower.txt
05-godzilla.txt
14-flowergarden.txt
19-seaport.txt
26-zorgen.txt
34-bestflowers.txt

Task: Remove the number before the name, but process only those files that have the word "flower" in their names. The final result should look like this:

05-godzilla.txt
19-seaport.txt
26-zorgen.txt
bestflowers.txt
flowergarden.txt
redflower.txt

To do it, load preset "mask" and drag the whole folder with example files to SR. "Non-flower" files will be automatically removed from the list.

Contacts/suggestions.

Should you have any questions, contact Anatoliy Kovalenko at http://acritum.com.