Captain Rex was a Clone trooper who served the Galactic Republic during the Clone Wars. He was the Captain of the 501st Legion.