A list of rules can be given. The rules are tried in order. The result of the first one that applies is returned. If none of the rules apply, the original expr is returned.
If the rules are given in nested lists, Replace is effectively mapped onto the inner lists. Thus Replace is equivalent to .
Delayed rules defined with can contain conditions.