<?php $r = 1; $information = ' blah //startcode1 $code = "blah blah blah blah ";//endcode1 blah '; ?>I'm trying to just pull out the part that starts with
$code = "
and ends with
Here is my method...
<?php preg_match('/(\/\/startcode'.$r.'\n\$code = )["\'](.*)["\'](;\/\/endcode'.$r.')/s', $information, $matches); ?>
yet when I print_r() the $matches, there is nothing.... help >.>?