Difference between revisions of "ReNamer:Rules:Replace"
Jump to navigation
Jump to search
m (general cleanup, answered the question) |
m (added templated question/answer) |
||
Line 1: | Line 1: | ||
+ | {{Template:Cleanup}} | ||
+ | |||
== 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. 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. | [[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. | ||
Line 19: | Line 21: | ||
| [[Image:]] button | | [[Image:]] button | ||
| Press to insert a <nowiki>*|*</nowiki> separator between strings. | | Press to insert a <nowiki>*|*</nowiki> separator between strings. | ||
− | + | {{Template:Question|Actually this inserts a separator in Replace box also. What does this mean? That pairs are replaced? (e.g. A->A, B->B etc.)}} | |
− | + | {{Template:Answer|YES, so multiple related replace operations can be combined into one rule.}} | |
− | |||
− | |||
|- | |- |
Revision as of 15:08, 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. | |||||||||||||||
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).
|