DLiteScript

strings.replace

Replaces the first occurrence of a substring.

Examples

1
2
var result string = strings.replace("hello world", "world", "there")
printf("%s\n", result) // hello there