I have the following regex that I'm using in Javascript:
/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/
It gets me the video ID correctly. I want to expand it to extract start time of videos:
I know there are at least two formats (if not more): "t=" and "start="
http://youtu.be/xxxxxxxx?t=30s
https://www.youtube.com/watch?v=xxxxxxxx&start=30
thanks,