Match a string and then expand out around it
Posted: Sat Sep 06, 2008 7:11 am
Hi,
This is a bit of a tricky one - I need to find a url in some html by a given unique ID and then expand out the result to grab the full url.
So, example html
I need to grab the http://b8.ac-images.myspacecdn.com/0067 ... thumb1.jpg url
So far I have
But this doesn't match the whole url.
Can anyone help?
James
This is a bit of a tricky one - I need to find a url in some html by a given unique ID and then expand out the result to grab the full url.
So, example html
Code: Select all
<a href="/index.cfm?fuseaction=vids.individual&VideoID=695236" class="videoPicture" title="Click here to view: Video"><img src="http://b8.ac-images.myspacecdn.com/00676/88/69/676559688_thumb1.jpg" height="90" width="120" alt="695236" /></a>So far I have
Code: Select all
/src=".*6559688(\.*)/iCan anyone help?
James