Wildcard masks
Wildcard masks (also called filename masks) are a simple pattern-matching syntax that uses special placeholder characters to match filenames.
Masks can be used in several places in ReNamer, including the Replace rule and Remove rule, Filter settings, and the Command line.
Pattern syntax
Masks are built from literal characters and the following special patterns:
| Pattern | Description |
|---|---|
* (asterisk) |
Matches any number of any characters, including none. |
? (question mark) |
Matches any single character. |
[abc] |
Matches any one of the specified characters (a, b, or c). |
[a-z] |
Matches any one character in the specified range (a through z). |
Mask lists
Multiple masks can be combined into a single mask list by separating them with semicolons (;). A file matches the list if it matches any one of the masks.
For example, the mask list *.txt;*.doc matches files with either a .txt or a .doc extension.
Examples
| Mask | Description |
|---|---|
*.jpg |
Matches files with a .jpg extension. |
magic* |
Matches files whose name starts with magic. |
*magic* |
Matches files whose name contains magic anywhere. |
*magic.* |
Matches files whose base name (excluding extension) ends with magic. |
*magic*.jpg |
Matches .jpg files whose name contains magic anywhere. |
*b?ll* |
Matches files containing a b, followed by any single character, followed by ll — for example, ball, bell, or bill. |