The fomuli (1) and (2) with the function StringReplace[] to replace the string-expressions ended in “c” are normal. I try to convert them into the rules like (3) and (4) , but failed. What’s wrong? (3) and (4) apparently are correct. How to rewrite (1) and (2) into the rules so as to follow “/.” to replace a string expression ending in “c”?
The rules explain how to format your code properly. If you do not format code, it may become corrupted and useless to other members. Please EDIT your posts and make sure code blocks start on a new paragraph and look framed and colored like this.
int = Integrate[1/(x^3 - 1), x];
Map[Framed, int, Infinity]
It does not make sense to do this because ReplaceAll and StringReplace are different. In order to adapt ReplaceAll first you need to check if a pattern is a string and then apply StringReplace anyway.