c# - Regular expression for youtube url -


what regular expression url ? in web application want validate url when user enters url in textbox.

url like: http://www.youtube.com/embed/owj0fns95xw

how this:

/^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/  

http://net.tutsplus.com/tutorials/other/8-regular-expressions-you-should-know/


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -