
Replaces all occurrences of a sub-string with another.
StrReplace (string, old, new)
(s) string string in which to search.
(s) old target sub-string.
(s) new replacement sub-string.
(s) updated string, with old replaced by new.
StrReplace scans the "string", searching for occurrences of "old" and replacing each occurrence with "new".
; Copy all INI files to clipboard
a = FileItemize("*.ini")
;in file list replace tabs with crlf's.
b = StrReplace(a, @TAB, @CRLF)
ClipPut(b)
newlist=StrCat("Before", @CRLF, a,@CRLF,@CRLF,"After", @CRLF, b)
Message("StrReplace",newlist)
StrInsert, StrScan, StrSub, StrIndex, StrIndexNc, StrIndexWild, StrOverlay