I have the following PHP string
$string = "Hello World<br>- 8/7/2013<br>Hello World";
So basically, I need to get the information between a dash and space (-
) and the closest line break tag. Your help is very much appreciated! I looked for hours but haven't been successful. I don't think that preg_replace
would help either.