BILLINGS, Mont. (AP) — Tim Fox has won the Republican primary for Montana attorney general.

Fox had 58 percent to 42 percent for Jim Shockley early Wednesday.

Fox was nominated as the GOP candidate in 2008 but lost to current Attorney General Steve Bullock in the general election. Bullock is running for governor and did not seek a second term.

Former state lawmaker Jesse Laslovich of Anaconda and Helena attorney Pam Bucy are seeking the Democratic nomination.

The last time a Republican was elected attorney general in Montana was in 1988.

Marc Racicot served in the post prior to becoming governor.