How can i get the content between h1 in a string when it contains 1 or more parameters/variables?
<h1> content </h1>
<h1 align=center> content </h1>
<h1 align="center" style=""> content </h1>
I would like to apply it like this:
if (eregi("<h1>(.*)</h1>", $data, $out)) {
$h_1=$out[1];
}
while searching, i found the answer on another forum , but their code gives a REG_BADRPT error message.
their code: /<h1(\d*)[^>]*>.*?<\/h\1\s*>/is