Was Muammar al-Gaddafi ever in the British army?

Yes.