I want to find each youtube link in a page. I found on StackOverflow some regex i modified but when i have a html code with two youtube linq the result is one match like
youtube.com?v=videoid<div></div>youtube.com?v=videoid2
I want to get each youtube link only.
My regex is :
/(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([\w|-|_]{11})/
Can someone help me please?
Thanks and sorry for bad english.