Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
RegularExpression help
ok guys, need help
I want to extract Youtube video ID
It comes in 2 possible variations. in the example below the video id is ibvwUyeKe8c
http://www.youtube.com/watch?v=ibvwUyeKe8c
http://www.youtube.com/v/ibvwUyeKe8c
Now i need a regular expression in JAVASCRIPT, that will extract the video id from the above strings
So i'm looking for what comes after v= and v/ and before & or eol
Good luck
avcourse i will extend it to Google video as well
http://video.google.com/googleplayer.swf?docId=8196749249677852682&hl=en
http://video.google.com/videoplay?docid=8196749249677852682
I want to extract Youtube video ID
It comes in 2 possible variations. in the example below the video id is ibvwUyeKe8c
http://www.youtube.com/watch?v=ibvwUyeKe8c
http://www.youtube.com/v/ibvwUyeKe8c
Now i need a regular expression in JAVASCRIPT, that will extract the video id from the above strings
So i'm looking for what comes after v= and v/ and before & or eol
Good luck
avcourse i will extend it to Google video as well
http://video.google.com/googleplayer.swf?docId=8196749249677852682&hl=en
http://video.google.com/videoplay?docid=8196749249677852682
0
This discussion has been closed.
Comments