I want to get a specific part of the url that is between two characters for example in the link below I want to get the part between v= and &.
http://www.youtube.com/watch?v=mof-Dq3hvWs&feature=youtu.be
I do that with the following regex (?<=v=)(.*?)(?=&)
My problem is when the link does not end with the &. For example:
http://www.youtube.com/watch?v=5FlQSQuv_mg
How can I match the string in both cases?