View Single Post
Old 02-26-2013, 06:26 AM  
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,532
any idea why this regex isnt matching google plus links?

Code:
https://youtube.com/watch?v=g_7AUFJNq5w (works)
https://youtube.com/v/g_7AUFJNq5w (works)
https://youtube.com/embed/g_7AUFJNq5w (works)
http://youtu.be/g_7AUFJNq5w (works)
http://plus.google.com/posts/FwCpHkqGxR1 (doesnt work) 

%^(?:https?://)?(?:www\.)?(?:youtu\.be/|plus\.google\.com|youtube\.com(?:/embed/|/posts/|/v/|/watch\?v=))([\w-]{10,12})$%x
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


My Cam Feeds Script / Gallery Scraper / WPXXX Theme / Free Templates
fris is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote