I want to parse option to uploadify method in that structure:
<script>
$(function() {
$("#file_upload_1").uploadify({
uploader : '/uploadify/uploadify.php',
});
});
</script>
I'm able to extract everything between script tag using:
$matches = array(); reg_match('/.*<script>(.*)<script>/s', $s, $matches);
but don't know how to move futher. I need to remove everything in $matches[1] before "uploadify({" (because it is keyword), and after first occurunce of "});"