Regular Expression to Match YouTube Watch URL

Posted by dododedodonl on Stack Overflow See other posts from Stack Overflow or by dododedodonl
Published on 2010-04-03T22:04:49Z Indexed on 2010/04/03 22:13 UTC
Read the original article Hit count: 222

Filed under:

Hi,

I've got this regex (I'm not good at it) /http://www.youtube.com/watch?v=[a-zA-Z0-9_]/i it has to match any youtube watch url (because youtube always redirects to that domain)... It should match http://www.youtube.com/watch?v=iMXCqgWjpL8 but it doesn't.

Can someone help me?

Regard, dodo

© Stack Overflow or respective owner

Related posts about regex