Difference between revisions of "Sv Replace"

Jump to navigation Jump to search
16 bytes removed ,  09:22, 6 July 2016
Fixed the description formatting
imported>CSbot
(Automated import of articles)
 
imported>QQuix
(Fixed the description formatting)
 
Line 1: Line 1:
{{BotAddedPage|CSbot|DragoonWraith}}
{{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
Anonymous user

Navigation menu