Rex, the nervous green dinosaur toy in Toy Story, is voiced by Wallace Shawn.
Rex is a plastic Tyrannosaurus rex who lives with Andy's other toys. Although his appearance suggests a fierce dinosaur, his personality is anxious, insecure and often concerned that he is not frightening enough.
Wallace Shawn has voiced Rex throughout the main Toy Story film series, beginning with the original 1995 movie. Shawn's performance contrasts Rex's large dinosaur shape with his hesitant speech and worries, making the character a recurring source of gentle comedy.
Rex is sometimes mistaken for another green dinosaur character from animation, but this question concerns the Toy Story toy specifically. His closest toy friends include Hamm, Slinky Dog, Mr. Potato Head and the Aliens.