vhf / resrc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Clean youtube links, strip out ugly params

vhf opened this issue · comments

http://stackoverflow.com/questions/4977233/regexp-to-find-youtube-url-strip-off-parameters-and-return-clean-video-url

/((http|ftp)\:\/\/)?([w]{3}\.)?(youtube\.)([a-z]{2,4})(\/watch\?v=)([a-zA-Z0-9_-]+)(\&feature=)?([a-zA-Z0-9_-]+)?/

Won't be fun to implement.