Difference between revisions of "Sv Replace"
Jump to navigation
Jump to search
Fixed the description formatting
imported>CSbot (Automated import of articles) |
imported>QQuix (Fixed the description formatting) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| origin = OBSE | | origin = OBSE | ||
| summary = Replaces occurrences of a string1 with string2 within a string variable. Both the text to replace and that with which to replace it are passed in a single format string separated by a pipe character as in "toReplace|replaceWith" (when calling from the console, use '@' in place of the pipe character). You can specify a range to search and case-sensitivity as in [[sv_Find]], plus an additional final argument specify how many occurrences to replace. By default, the command replaces all occurrences. | | summary = Replaces occurrences of a string1 with string2 within a string variable. | ||
Both the text to replace and that with which to replace it are passed in a single format string separated by a pipe character as in "toReplace<nowiki>|</nowiki>replaceWith" (when calling from the console, use '@' in place of the pipe character). | |||
You can specify a range to search and case-sensitivity as in [[sv_Find]], plus an additional final argument specify how many occurrences to replace. By default, the command replaces all occurrences. | |||
| name = sv_Replace | | name = sv_Replace | ||
| returnVal = numReplaced | | returnVal = numReplaced |