I'm looking for a way to extract both (partials) youtube urls and single ids from a user input string.
This article How do I find all YouTube video ids in a string using a regex? got me going quite well but still i'm struggling a bit.
Is there a way to find both playlist and/or video ids from a strings from:
- E4uySuFiCis
- PLBE0103048563C552
Through:
- ?v=4OfUVmfNk4E&list=PLBE0103048563C552&index=5
- http://www.youtube.com/watch?v=4OfUVmfNk4E&list=PLBE0103048563C552&index=5