The black reg wire plugs into the black wire from the harness, and the white reg wire plugs into the white wire from the harness. If there is a loose green wire from the reg, it should be plugged into the green wire from the harness, assuming you are talking about a stock harness.