How to modify some characters in an array of strings?

I have this variable :

terms2 = ['5*x^4', '4*x^3', '2/x^2']

I neew to make some changes when '/' appears and after that terms2 should be:

terms2 = ['5*x^4', '4*x^3', '2*x^-2']

I've been shearching for a way to do this for some days, thanks.