I found two search options in the string:
"http://www.youtube.com/embed/8rwsuXHA7RA".indexOf("youtube.com") != -1 and
~"http://www.youtube.com/embed/8rwsuXHA7RA".indexOf("youtube.com") Judging by the test , the second option is faster, but please explain how exactly it works.
~-1 === 0- zb '28