2015/06/23

How to cut body content from HTML using regular expressions in PHP ?

preg_match('/<body[^>]*>(.*?)<\/body>/s', $content, $matches);
view raw gistfile1.php hosted with ❤ by GitHub

No comments:

Post a Comment