I a newbie to regx. I am unable to get things right with his. Can some one help me with this. I have a web page source code, where in i need to locate this pattern:
http://cdn1b.mobile.website.com/videos/201102/18/174092/240P_245K_174092.mp4?rs=125&ri=600&s=1394217550&e=1394228350&h=b99d1d9d38da8ba3ab99601de0cf794e
I need to get only one instance of this even if there are more. But i am getting selection from first http in the page to the last mp4?rs=125&ri=600&s=1394217550&e=1394228350&h=b99d1d9d38da8ba3ab99601de0cf794e
in the page. I am using php.
Edited: This is what i was trying. (sorry if its stupid)
(http(s?):).*\.(mp4|flv|mkv|avi)(\?rs=[A-Za-z0-9=]+).*.(ri=[A-Za-z0-9=]+).*.(s=[A-Za-z0-9=]+).*.(e=[A-Za-z0-9=]+).*.(h=[A-Za-z0-9=]+)
Edited: Here is a pastebin of what i am getting with my expression