Kaba function string.replace ed

Finds and replaces each occurance of a sequence within a string.

Syntax ed

func pure string.replace(sub: string, by: string) -> string

Parameters ed

sub: string
The exact sequence to replace.

by: string
The sequence to replace it by.

Return ed

The result of the replacement.