[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.5.53 ‘string-substitute’ - multiple global replacements

Usage: (string-substitute source match repl)
match and repl may be either a single string or a list of strings. Either way, they must have the same structure and number of elements. For example, to replace all amphersands, less than and greater than characters, do something like this:

 
(string-substitute source
(list "&"     "<"    ">")
(list "&amp;" "&lt;" "&gt;"))

Arguments:
source - string to transform
match - substring or substring list to be replaced
repl - replacement strings or substrings


This document was generated by Bruce Korb on August 30, 2014 using texi2html 1.82.