I am trying to do some substitution on the basis of pattern matching. I am trying to replace $\frac{1}{a+i b}\to\frac{a-ib}{a^2+b^2}$ in the following way,
ruleExp = {Power[Plus[Complex[0,-1],a_],-1]->(a+I)/(a^2+1),
Power[Plus[Complex[0,1],a_],-1]->(a-I)/(a^2+1),
Power[Plus[a_,Times[Complex[0,1],b_]],-1]->(a-I b)/(a^2+ b^2),
Power[Plus[a_,Times[Complex[0,-1],b_]],-1]->(a+I b)/(a^2+ b^2)};
1/(a - I b) /. ruleExp (*Out:= (a + I b)/(a^2 + b^2)*)
1/(a + I b) /. ruleExp (*Out:= (a + I b)/(a^2 + b^2)*)
1/(a - I ) /. ruleExp (*Out:= (a + I)/(a^2 + 1) *)
1/(a + I ) /. ruleExp (*Out:= (a - I)/(a^2 + 1) *)
As you can see I have to write 4 rules to match patterns with symbols and different signs, as I understand it this is robust but is there some smarter way to match all such expressions for numeric as well as symbolic expressions for all signs with less than these four rules?