For odd powers, you can do something like x*x*x+x+x+x+ which gives (n-3)*(n-2)*(n-1)*n*(n+1)*(n+2)*(n+3)/7!. Then multiply by the factorial, and you get something like (n^2-9)(n^2-4)*(n^2-1)*n. When expanded all the terms have odd powers, and you can gradually improve it
The way I found this was by guessing random things... I saw that x?x*x+x+ gave me oeis.org/A002415, which looks pretty close to n^4. So I multiplied by 12, and added n^2
Actually, I can get 63: ^(x(x+))(?<!^\3+(x+x))(?!(?=x*(\1(?=(\1*)\2+$)\1+$\5))\4*$)\1*$ So it's 1char shorter than the one I gave you before... but I gets the answer wrong for 1
I was just trying a slightly different approach for Guiga... Right now it's 4 chars longer: ^(x(x+))(?<!^\3+(x+x))(?!((x+)\5*(?=\5$))?\1(?=(\1*)\2+$)\1+$\6)\1*$
In general I don't have much interest in codegolf.stackexchange... I spend some time messing around on code.golf, and recently did a couple of regex-ish holes in Vim which tempted me to look here for a bit