I am trying to delete an unknown piece of text from a string, but i cannot seem to get the reg expr. right...
The text i would like to delete is the text between the 'start' and the 'stop' words.
Thanks in advance.
My (not workin) code thus far:
$html = 'Lorem start ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris
nisi ut aliquip ex ea stop commodo consequat.' ;
$html_stripped = preg_replace("/^start(.+)stop$/m", "", $html);