10-18-2008, 06:48 PM
|
#41 (permalink)
|
|
The Prestige
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
|
ok now im not the best at regex, so perhaps Salathe or someone could produce something better, but heres a rule that seems to work.
Code:
'~^http://(w{3}\.|[a-z]{2}\.)youtube\.com/watch\?v=[\w-]{11}$~i'
I think the video ID is 11 chars in length, not sure though.
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
Last edited by sketchMedia : 10-18-2008 at 06:59 PM.
Reason: edited error in regex
|
|
|
|