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

StringReplacePart

Usage

StringReplacePart["string", "snew", {m, n}] replaces the characters at positions m through n in "string" by "snew".
StringReplacePart["string", "snew", {{ ,  }, { ,  }, ... }] inserts copies of "snew" at several positions.
StringReplacePart["string", {" ", " ", ... }, {{ ,  }, { ,  }, ... }] replaces characters at positions  through  in "string" by " ".


Notes

StringReplacePart uses position specifications in the form returned by StringPosition.
• When a list of " " is given, its length must be the same as the length of the list of positions.
• When multiple positions are given, all refer to the original "string", before any replacements have been done.
StringReplacePart[s, "", ... ] can be used to delete substrings.
• See Section 2.8.2.
• New in Version 3.


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



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