Wolfram ResearchPRODUCTSPURCHASEFOR USERSCOMPANYOUR SITES
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.

Documentation / Mathematica / Built-in Functions / New in Version 3.x / Programming /

StringInsert

FilledSmallSquare StringInsert["string", "snew", n] yields a string with "snew" inserted starting at position n in "string".

FilledSmallSquare StringInsert["string", "snew", -n] inserts at position n from the end of "string".

FilledSmallSquare StringInsert["string", "snew", , , ... ] inserts a copy of "snew" at each of the positions .

FilledSmallSquare Example: StringInsert["abcdefg", "XYZ", 2] LongRightArrow.

FilledSmallSquare StringInsert["string", "snew", n] makes the first character of snew the n character in the new string.

FilledSmallSquare StringInsert["string", "snew", -n] makes the last character of snew the n character from the end of the new string.

FilledSmallSquare In StringInsert["string", "snew", , , ... ] the are taken to refer to positions in "string" before any insertion is done.

FilledSmallSquare See Section 2.8.2.

FilledSmallSquare See also: StringReplacePart, Insert, StringPosition.

FilledSmallSquare New in Version 2; modified in 3.

Further Examples



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information


 © 2008 Wolfram Research, Inc.  Terms of Use  Privacy Policy | [ja] |
Sign up for our newsletter: