Difference between revisions of "ReNamer:Rules:Replace"
Jump to navigation
Jump to search
(Created page with '== Replace Rule == [[Image:]]This rule removes the specified string from the name and replaces it with another string. It has options to replace the first occurrence only, the la...') |
m (general cleanup, answered the question) |
||
Line 1: | Line 1: | ||
== Replace Rule == | == Replace Rule == | ||
− | [[Image:]]This rule removes the specified string from the name and replaces it with another string. It has options to replace the first occurrence only, the last occurrence only, or all the occurrences. | + | [[Image:]]This rule removes the specified string from the name and replaces it with another string. It has options to replace the first occurrence only, the last occurrence only, or all the occurrences. You can replace multiple strings at a time. The rule will replace ''each'' of them with the same replacement string. You can create a pattern with wild cards, so that any string that matches the pattern will be removed. |
− | |||
− | You can replace multiple strings at a time. The rule will replace ''each'' of them with the same replacement string. | ||
− | |||
− | You can create a pattern with wild cards, so that any string that matches the pattern will be removed. | ||
The parameters are as follows: | The parameters are as follows: | ||
− | |||
{| class="prettytable" | {| class="prettytable" | ||
− | + | ! Parameter | |
− | + | ! Details | |
|- | |- | ||
Line 20: | Line 15: | ||
* 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 all of them. | * If the name contains more than one of these strings, it will replace all of them. | ||
− | |||
− | |||
|- | |- | ||
| [[Image:]] button | | [[Image:]] button | ||
− | | Press to insert a | + | | Press to insert a <nowiki>*|*</nowiki> separator between strings. |
'''@@@ actually this inserts a separator in Replace box also. What does this mean? That pairs are replaced? (e.g. A →A', B->B' etc.)''' | '''@@@ actually this inserts a separator in Replace box also. What does this mean? That pairs are replaced? (e.g. A →A', B->B' etc.)''' | ||
+ | |||
+ | <span style="color: blue; font-weight: bold">@@@ YES, so multiple related replace operations can be combined into one rule.</span> | ||
|- | |- | ||
| Replace | | Replace | ||
− | | Enter the string that will replace the | + | | Enter the string that will replace the "Find" string. |
* Note that although the rule can find different strings, it can use only one string as replacement. If you do not want that, you will have to add the '''Replace''' rule multiple times, with specific pairs of ''find ''and ''replace'' strings. | * Note that although the rule can find different strings, it can use only one string as replacement. If you do not want that, you will have to add the '''Replace''' rule multiple times, with specific pairs of ''find ''and ''replace'' strings. | ||
− | |||
− | |||
|- | |- | ||
Line 56: | Line 49: | ||
| Interpret symbols as wild cards | | Interpret symbols as wild cards | ||
| The following wild cards are allowed (compare with RegEx). | | The following wild cards are allowed (compare with RegEx). | ||
− | |||
{| class="prettytable" | {| class="prettytable" | ||
− | + | ! | |
− | + | ! Represents | |
− | + | ! Example | |
|- | |- | ||
Line 82: | Line 74: | ||
| (only within a pair of brackets) denotes a range of characters. | | (only within a pair of brackets) denotes a range of characters. | ||
| '''<nowiki>foo[a-z]ar </nowiki>'''equals '''fooaar''', '''foobar,''' '''foocar,''' '''foodar,''' etc. | | '''<nowiki>foo[a-z]ar </nowiki>'''equals '''fooaar''', '''foobar,''' '''foocar,''' '''foodar,''' etc. | ||
− | |||
|} | |} | ||
− | |||
− | |||
|} | |} |
Revision as of 14:19, 31 May 2009
Replace Rule
[[Image:]]This rule removes the specified string from the name and replaces it with another string. It has options to replace the first occurrence only, the last occurrence only, or all the occurrences. You can replace multiple strings at a time. The rule will replace each of them with the same replacement string. You can create a pattern with wild cards, 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.
| |||||||||||||||
[[Image:]] button | Press to insert a *|* separator between strings.
@@@ actually this inserts a separator in Replace box also. What does this mean? That pairs are replaced? (e.g. A →A', B->B' etc.) @@@ YES, so multiple related replace operations can be combined into one rule. | |||||||||||||||
Replace | Enter the string that will replace the "Find" string.
| |||||||||||||||
Insert meta tag [[Image:]] | Click the button to see a list of meta-tags. | |||||||||||||||
Occurrences | In case the strings occurs multiple times in the name, specify which occurrences should be replaced. (Options are- First only, last only, or all) | |||||||||||||||
Skip extension | If this check box is unselected, the extension will be included in 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).
|