PHP: How to parse out HTML comments phptuts February 2, 2013 Method 1: Using preg_match_all function: Example: Result: Method 2: Example: Result: Bug: Result: Continue Reading