StringReplacePart::spos

Details

  • This message is generated when the third argument in StringReplacePart is not an integer, a pair of integers, or a list of pairs of integers.
  • Off[message] switches off the message; On[message] switches it on. For example: Off[StringReplacePart::spos].

Examples

Basic Examples  (1)

An error occurs because the third argument is not a pair of integers:

This shows a valid position specification in StringReplacePart: