I have a string which outputs user provided URLs. I\'m trying to display only the output which contains youtube videos. So I use the below code as per usual :