The regroup command takes as parameter an expression. regroup returns the expression with obvious simplifications. Input:
Output: