extractRhs function

Extract right-hand-side expression.