View Single Post
Old 12-21-2012, 01:20 PM  
AutumnBH
Confirmed User
 
AutumnBH's Avatar
 
Industry Role:
Join Date: Oct 2012
Location: Spamville
Posts: 294
Assuming you want php and your html is in $html:

Code:
<?php

$html = "so.addVariable('file','http://media.domain.com/videos/filename.mp4');";

preg_match("/so.addVariable\('file','([^']*)'\);/", $html, $regs);

$mp4_url = $regs[1];

echo "$mp4_url\n";

?>

Last edited by AutumnBH; 12-21-2012 at 01:28 PM.. Reason: double quotes whoops
AutumnBH is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote