Difference between revisions of "ReNamer:Masks"
Jump to navigation
Jump to search
(Fully explained wildcard masks.) |
|||
Line 31: | Line 31: | ||
|- | |- | ||
| <code>[a-z]</code> | | <code>[a-z]</code> | ||
− | | Matches any one | + | | Matches any one character in the specified range ("a" through "z"). |
|} | |} | ||
Revision as of 14:26, 27 June 2017
Filename or wildcard masks are used for simple pattern matching using special placeholder characters.
Masks can be used in several places in ReNamer, including:
- Replace and Remove rules,
- Command line,
- Filter settings.
Placeholder characters
Character | Description |
---|---|
* (Asterisk)
|
Match any number of any characters. |
? (Question mark)
|
Match any single character. |
Extended pattern matching
Pattern | Description |
---|---|
[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"). |
Note: Only the selected renaming rules support extended pattern matching features.
Mask lists
Multiple masks can be expressed in a single parameter (mask list) by separating individual masks with semicolons (";").
For example, a mask list *.txt;*.doc
matches files with a *.txt
or *.doc
extension.