# Mathematica-like transformations rules

Hey everyone!

I am currently exploring Sage's features and was wondering if there is something similar to Mathematica's replacement/transformation rules, which are (in my opinion) the strongest feature of Mathematica itself.

Thanks in advance for any answers!

PS: I would have liked to link on Wolfram's documentation page on Transformation rules but my Karma is insufficient for posting links, so in case you wonder what I mean by transformation rules, just give Google a hit.

Welcome to Ask Sage! Thank you for your question!

New users cannot post hyperlinks, which helps avoid a lot of spam.

A workaround is to introduce spaces in the url of links.

For example: https:// wiki.sagemath.org instead of https://wiki.sagemath.org.

Or put more spaces if necessary, eg https:// wiki .sagemath .org.

I think the question is more general than just substitutions in symbolics expression as I remember a course on Mathematica I saw some years ago. Can you update the question by giving an example of such typical transformation rules?