I have a string called "URL" which stores the url which comes dynamically. Now I would like to show whether the url from youtube or vimeo or facebook or google.
String URL = "https://www.youtube.com/watch?v=M0jmSsQ5ptw"; // this comes dynamically in my code
if [URL contains youtube word ] [ print "URL from YOUTUBE" ]
if [URL contains facebook word ] [ print "URL from FACEBOOK" ]
if [URL contains google word ] [ print "URL from GOOGLE" ]
if [URL contains vimeo word ] [ print "URL from VIMEo" ]
please help me how to find a word in a url.