Please enable JavaScript to view this site.

Returns a new string in which all occurrences of the specified string in the text are replaced with another specified string. The search is done case-sensitive.

 

string StrReplace(string text; string oldValue; string newValue; [int startIndex])

 

text

The string to do search and replace inside.

oldValue

The string to be replaced.

newValue

The string to replace oldValue.

startIndex

Optional index for where to start doing replacements.

Example

StrReplace("Winter is coming.";"Winter";"Summer")

Returns "Summer is coming.".

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC