I have an expression of the form a1*x*b1^2 + a2*y*c1^2 I want to extract the x and y from the expressions. a_,b_,c_ are the only types of variables that appear in the expression . Form of x and y are not known. Anyone know how? x and y are not necessarily numbers .