Regex help

I have managed to get the contents of a YouTube page (http://www.youtube.com/watch?v=TSjPPnR4hdE)

In the source, there is this:

<script> 
			var yt = yt || {};
			yt.preload = {};
			yt.preload.start = function() {
				var img = new Image();
				yt.preload.videoConnection = img;
				img.onload = img.onerror = function () {
					delete yt.preload.videoConnection;
				};
				img.src = 'http:\\/\\/v5.lscache7.c.youtube.com\\/preload?ip=0.0.0.0&sparams=id&#37;2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor%2Coc%3AU0dWRlhNVF9FSkNNNl9QR1hB&fexp=906902&algorithm=throttle-factor&itag=34&ipbits=0&burst=40&sver=3&expire=1271826000&key=yt1&signature=2CBAAA3051DCE8756AF4A11917E8C5C2715BDF95.92FFA88A071C94BE40B79C0B9182C33128B1E0F4&factor=1.25&id=4d28cf3e747885d1';
				img = null;
			};
			yt.preload.start();
		</script> 

I need to get the following from the source:

http:\\/\\/v5.lscache7.c.youtube.com\\/preload?ip=0.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor%2Coc%3AU0dWRlhNVF9FSkNNNl9QR1hB&fexp=906902&algorithm=throttle-factor&itag=34&ipbits=0&burst=40&sver=3&expire=1271826000&key=yt1&signature=2CBAAA3051DCE8756AF4A11917E8C5C2715BDF95.92FFA88A071C94BE40B79C0B9182C33128B1E0F4&factor=1.25&id=4d28cf3e747885d1

From the img.src parameter.

I need the output taken from this defined as a variable and replaced to a valid URL without the \ in the URL.

So basically I want to take what ever is in the img.src ’ '; part, fix it up so it outputs:

http://v5.lscache7.c.youtube.com/preload?ip=0.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor%2Coc%3AU0dWRlhNVF9FSkNNNl9QR1hB&fexp=906902&algorithm=throttle-factor&itag=34&ipbits=0&burst=40&sver=3&expire=1271826000&key=yt1&signature=2CBAAA3051DCE8756AF4A11917E8C5C2715BDF95.92FFA88A071C94BE40B79C0B9182C33128B1E0F4&factor=1.25&id=4d28cf3e747885d1

I also need to get whatever is contained in the “fmt_url_map=” parameter in the source too.

Any help would be greatly appreciated.