PHP: preg_match multi line match example $html = '<body> <div>some text</div> </body>'; $regExp = '/<body>(.*)</body>/msU'; preg_match($regExp, $html, $match); print_r($match); Related
I found your snippet very useful.
Thanks
Thank you for you comment 🙂