Online Algebra Calculator
Many of users do not use powerful Maxima computer algebra system for systematic work, but for ad hoc algebraic calculations – equations, functions, matrixes, etc. only. To do this job, it is not useful to download the whole application from a web site.
Function: ssubst (<new>, <old>, <string>)
Function: ssubst (<new>, <old>, <string>, <test>)
Function: ssubst (<new>, <old>, <string>, <test>, <start>)
Function: ssubst (<new>, <old>, <string>, <test>, <start>, <end>) Returns a string like <string> except that all substrings matching <old> are replaced by <new>. <old> and <new> need not to be of the same length. Default test function for matching is sequal. If ssubst should ignore case while searching for old, use sequalignore as test. Use <start> and <end> to limit searching. Note that the first character in <string> is in position 1.
(%i1) ssubst("like","hate","I hate Thai food. I hate green tea.");
(%o1) I like Thai food. I like green tea.
(%i2) ssubst("Indian","thai",%,sequalignore,8,12);
(%o2) I like Indian food. I like green tea. There are also some inexact matches for ssubst. Try ?? ssubst to see them.
(%o1) true (%i2)