Rex (Star Wars)

Captain Rex (or CT-7567) is a clone trooper captain in the Grand Army of the Republic (GAR), who fought alongside Jedi Knight Anakin Skywalker and his Padawan Ahsoka Tano until she left the Jedi Order after being framed for bombing the Jedi Temple and murdering Letta Turmond by Barriss Offee, the real saboteur. He is voiced by Dee Bradley Baker.

He was the captain and lead the legendary 501st Legion, with Commander Appo succeeding him as the leader of the 501st by the end of the war when the deserted the Grand Army of the Republic service as a clone trooper.

Star Wars: The Clone Wars
Rex appeared as a prominent character in the series, who is in several episodes. He is good friends with Anakin Skywalker, Commander Cody and Ahsoka Tano. He was sad when trooper Fives died, as they had known each other since fighting together to save the Rishi outpost. He is tough and loyal, evidenced when Asajj Ventress interrogated him and he refused to talk. At some point after Fives' death, Rex had his inhibitor chip removed and possibly deserted the army; with Commander Appo succeeding him as the leader of the 501st by the end of the war.

Star Wars Rebels
Captain Rex appears in the second season of Star Wars Rebels where he is the leader of a trio of Clone Wars survivors - he and clone officers Wolffe and Gregor, living on an old AT-TE somewhere in the Seelo system. Rex and his brothers are surprised by the arrival of the Jedi Kanan Jarrus, and quickly, Wolffe and Gregor quickly open fire. Kanan, however, deflects them back, but Ezra Bridger, Kanan's apprentice, stops the fighting.

As the rebels and clones bond, Kanan still has sour feelings for the troopers, but Ezra looks up to Rex. As Rex puts together a list of locations for possible rebel bases, Garazeb Orrelios, Sabine Wren, Ezra, and Kanan help Gregor and Wolffe hunt for a giant worm. However, unbeknownst to the rebels and Rex and Gregor, Wolffe contacts the Empire and gives them the rebels' location. An Imperial probe droid zones in on them, and gives their location to the Imperial command.

Rex and Kanan then confront Wolffe about his betrayal, and he replies that he simply wanted to protect his brothers. He then joins the rebels and clones as they battle the probe droid and wait for the arrival of the Imperial war machine.