Hi,
Let's say I have the fallowing structure:
<?php
$article = "Ok.. some text here...
(start)
first * second
third * forth
fifth * sixth
and * so on
(end)
some other text here...
";
?>
And I want to extract what's between (start) & (end) and put the result into a new variable.
The fallowing code is only working when all the data on the same line!
if (preg_match("/\(start\)(.+?)\(end\)/", $content, $match))
{
print $match[1];
}
Thanks in advance.