Difference between revisions of "ReNamer:Rules:Replace"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
== Replace Rule == | == Replace Rule == | ||
<center>[[Image:ReplaceRule.png]]</center> | <center>[[Image:ReplaceRule.png]]</center> | ||
− | This rule removes the specified string from the name and replaces it with another string. It has options to replace the first occurrence | + | This rule removes the specified string from the name and replaces it with another string. It has options to replace the first occurrence, the last occurrence, or all the occurrences. You can replace multiple strings at a time. You can create a pattern with wildcards, so that any string that matches the pattern will be removed. |
The parameters are as follows: | The parameters are as follows: | ||
Line 14: | Line 14: | ||
| Find | | Find | ||
| Enter the string to be replaced. | | Enter the string to be replaced. | ||
− | *You can enter multiple strings at a time. Press the + button to separate two strings | + | *You can enter multiple strings at a time. Press the + button (or type vertical bar "<nowiki>|</nowiki>") to separate two strings. |
*If the name does not contain the specified string, the rule will not act on it. | *If the name does not contain the specified string, the rule will not act on it. | ||
− | *If the name contains more than one of these strings, it will replace | + | *If the name contains more than one of these strings, it will replace them according to the Occurrences parameter. |
|- | |- | ||
| [[Image:PlusButton.png]] button | | [[Image:PlusButton.png]] button | ||
− | | Press to insert a <nowiki> | + | | Press to insert a vertical bar (<nowiki>|</nowiki>) that will separate multiple strings. |
This inserts a separator in Replace box also. This means that pairs are replaced (e.g. A -->A', B -->B' etc.) } | This inserts a separator in Replace box also. This means that pairs are replaced (e.g. A -->A', B -->B' etc.) } | ||
|- | |- | ||
| Replace | | Replace | ||
− | | Enter | + | | Enter strings that will replace the "Find" strings. |
− | *Note that | + | *Note that the quantity of strings (separated with "|") in "Find" and "Replace" boxes should be the same. If there is more strings in the "Find" box than in the "Replace" box the spare strings will be removed (replaced with an empty string). If there is more strings in the "Replace" box, the spare strings will be ignored. |
|- | |- | ||
Line 35: | Line 35: | ||
|- | |- | ||
| Occurrences | | Occurrences | ||
− | | In case | + | | In case that strings occure more than once in the filename, specify which occurrences should be replaced. (Options are: ''first only'', ''last only'', or ''all'') |
|- | |- | ||
| Skip extension | | Skip extension | ||
− | | If this check box is | + | | If this check box is selected, the extension will be ignored by the rule. |
|- | |- | ||
| Case sensitive | | Case sensitive |
Revision as of 22:04, 25 August 2009
Replace Rule
This rule removes the specified string from the name and replaces it with another string. It has options to replace the first occurrence, the last occurrence, or all the occurrences. You can replace multiple strings at a time. You can create a pattern with wildcards, so that any string that matches the pattern will be removed.
The parameters are as follows:
Parameter | Details | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Find | Enter the string to be replaced.
| |||||||||||||||
button | Press to insert a vertical bar (|) that will separate multiple strings.
This inserts a separator in Replace box also. This means that pairs are replaced (e.g. A -->A', B -->B' etc.) } | |||||||||||||||
Replace | Enter strings that will replace the "Find" strings.
| |||||||||||||||
Insert meta tag | Click the button to see a list of meta-tags. | |||||||||||||||
Occurrences | In case that strings occure more than once in the filename, specify which occurrences should be replaced. (Options are: first only, last only, or all) | |||||||||||||||
Skip extension | If this check box is selected, the extension will be ignored by the rule. | |||||||||||||||
Case sensitive | Will only remove a specified string from the name if the case matches exactly. | |||||||||||||||
Interpret symbols as wild cards | The following wild cards are allowed (compare with RegEx).
|