This is documentation for Mathematica 4, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

SymbolNameStringInsert (modified)


FilledSmallSquareStringReplacePart["string", "snew", m, n] replaces the characters at positions m through n in "string" by "snew".

FilledSmallSquareStringReplacePart["string", "snew", , , , , ... ] inserts copies of "snew" at several positions.

FilledSmallSquareStringReplacePart["string", "", "", ... , , , , , ... ] replaces characters at positions through in "string" by "".

FilledSmallSquareStringReplacePart uses position specifications in the form returned by StringPosition.

FilledSmallSquare When a list of "" is given, its length must be the same as the length of the list of positions.

FilledSmallSquare When multiple positions are given, all refer to the original "string", before any replacements have been done.

FilledSmallSquareStringReplacePart[s, "", ... ] can be used to delete substrings.

FilledSmallSquare See The Mathematica Book: Section 2.7.2.

FilledSmallSquare See also: StringInsert, StringDrop, StringReplace, StringJoin, ReplacePart.

Further Examples

SymbolNameStringInsert (modified)