Having recently done a similar job You have two options.
1. Remake pipe exactly as it is and somehow re-use the connector
2. Remake the pipe a bit longer and then fit it directly into the rubber pipe with suitable clips
I chose the latter because the connector on mine simply wasn't going to be re-usable.
, on Flickr