Download your own copy of Word Batch Replacer today!Prev Page Prev Page
Using Word Batch Replacer
Getting Started
Main Window
Replace Rules Page
File Items Page
Processing Options Dialog
File masks
Properties 1
Properties 2
Progress Form
Settings Dialog
Command Line Support
Installation Issues
Crash Recovery
Common issues
Deep Troubleshooting
Registration Benefits
How to Buy
Support & Feedback
License Agreement
Privacy Policy
Change Log
Other products

Back to the General Tab

General Tab -> Filemasks

Both “File mask” and “Exclude files” fields let you enter multiple masks, separated by semicolons. During the search-and-replace process, Word Batch Replacer checks all files in a given directory for a match. When a file is found, the program tries to match its filename to the pattern entered in the “File mask” text input field. If either mask matches the filename, the file is considered to comply with the selection criteria. If this is the case, the filename is checked against each mask entered into the “Exclude files” field; if a match is found, the file will be skipped, otherwise it will be processed.

Filemask syntax

Each literal character must match a single character in the string. The comparison with literal characters is case-insensitive.

Each set begins with an opening bracket [ and ends with a closing bracket ]. The brackets enclose the elements of the set. Each element is a literal character or a range. Ranges are specified by an initial value, a dash (-), and a final value. Do not use spaces or commas to separate the elements of the set. A set must match a single character in the string. The character matches the set if it is the same as one of the literal characters in the set, or if it belongs to a range of the set. A character belongs to a range if it matches the initial value or the final value, or is between these two values. All comparisons are case-insensitive. If the first character after the opening bracket of a set is an exclamation point (!), then the set matches any character that is not in the set.

Do not use Unicode characters within sets. They are unsupported within sets and will cause an error. However, you may use Unicode characters outside sets just like any other characters, without any special requirements.

Wildcards are asterisks (*) or question marks (?). An asterisk matches any number of characters. A question mark matches a single arbitrary character.

Back to the General Tab