You may find it useful to use one or more rules with an expression several times. Mathematica provides functions that let you iterate when using rules with expressions. In cases where a rule can be used in several ways with an expression, Mathematica also allows you to view all possible results.
While (the short form for ReplaceAll) applies rules to an expression only once, you may find it useful to repeatedly apply rules to an expression until it no longer changes. You can do this by using (the short form for ReplaceRepeated).
You should use caution when using with a circular set of rules. Use the MaxIterations option to set the maximum number of iterations for :