Jump to content

Extract url from script help


mraza

Recommended Posts

Hi i wants to extract a link from a script line

 

i wants to get this line

img.src = 'http:\/\/this link i wants to extract';

from below code, please can someone  tell me how can i do that.

<script> 
		var yt = yt || {};
		t.preload = {};
		y.preload.start = function() {
			var img = new Image();
			t.preload.videoConnection = img;
			img.onload = img.onerror = function () {
				delete t.preload.videoConnection;
			};
			img.src = 'http:\/\/this link i wants to extract it alos contain $%&= type of words';
			img = null;
		};
		yt.preload.start();
	</script> 

 

Thanks for support :)

Link to comment
https://forums.phpfreaks.com/topic/208773-extract-url-from-script-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.