Frank: preg_match Problem

hallo, ich will gern das hier probben:

<?
$myString = "<-<table border=1 width=300>
<tr>
<td>test</td>
</tr>
</table>->";

preg_match ("/<-(.*)->/", $myString , $matches);
echo $matches[1];
?>

nur leider funst das net, kann mir jemand sagen, wo der fehler ist!!

danke sehr!

  1. http://www.php.net/manual/en/pcre.pattern.modifiers.php

    <quote>
    [...]
    s (PCRE_DOTALL)

    If this modifier is set, a dot metacharacter in the pattern matches all characters, including newlines. Without it, newlines are excluded. [...]
    </quote>