Skip to content

StringReplacePart

Replaces a specific character range (1-indexed, inclusive) with a new string.

$ wo 'StringReplacePart["Hello world", "XXXX", {1, 5}]'
XXXX world