Regioselective synthesis of isotopically labeled Δ9-tetrahydrocannabinolic acid A (THCA-A-D3) by reaction of Δ9-tetrahydrocannabinol-D3 with magnesium methyl carbonate.