Next: restore() Up: MacAnova Help File Previous: rep()   Contents

replacestr()

Usage:
replacestr(source,old,new) replace first instance of old by new
  in source, where all three are Character scalars
replacestr(source,old,new,T) replace all instances of old by new
  in source, where all three are Character scalars



Keywords: CHARACTER variables
replacestr(source,old,new) works on three CHARACTER scalar
variables.  It replaces in source the first instance of the string
in old by the string in new.  If old does not appear in source,
then source itself is returned.
replacestr(source,old,new,T) is similar, except that all instances
of old are replaced by new.


Gary Oehlert 2006-01-30