StringInsert
StringInsert(string, new-string, position)
returns a string with
new-string
inserted starting atposition
instring
.
StringInsert(string, new-string, -position)
returns a string with
new-string
inserted starting atposition
from the end ofstring
.
StringInsert(string, new-string, {pos1, pos2,...})
returns a string with
new-string
inserted at each positionposN
instring
.
StringInsert({str1, strr2,...}, new-string, position)
gives the list of results for each of the strings
strN
Examples
>> StringInsert({"", "Symja"}, "X", {1, 1, -1}){XXX,XXSymjaX}
Related terms
StringCases, StringContainsQ, StringCount, StringExpression, StringFreeQ, StringJoin, StringLength, StringMatchQ, StringPart, StringPosition, StringQ, StringReplace, StringRiffle, StringSplit, StringTake, StringToByteArray, StringTrim
Implementation status
- ✅ - full supported