Rex was introduced to the series in season two as a love interest for Alex while Evan was away. He stayed with Alex after Evan returned and even admitted his love for her. But he left her because he knew she didn't love him the way he loved her.
Rex's real name is Anthony. He got the nickname 'Rex' when he was a child because he really liked dinosaurs. Everyone used the nickname so much that even his mother calls him Rex.