$web = "...if (url.contains(\".mp4\"))..."

Read more of this post