I have this array:
'@(.*?)<div>(.*?)</div>(.*?)@i' => 'ok'
And I am using preg_replace to return the value "ok" from some string.
The problem is that when I do the preg_replace, the last (.*?) isn't "detected".
Example
I have the string: test1<div>test2</div>test3
And with that array and preg_replace, it would return oktest3. Why isn't test3 replaced?