How to validate a YouTube url using JavaScript
Here is a little code snippet to help you validate a value to ensure it's a YouTube url using JavaScript. This regex here will ensure that the url supplied matches the criteria of a valid youtube url: * This is that it is from www.youtube.com or youtu....