RegEx for Multi-line Comments?

Basically, I need something that can find anything between /** and */.

I know this isn’t very ethical or professional due to the risk involved and that’s why I intend on seeing each match prior to any committing actions (this isn’t being used in PHP per-say, but more so in WindowsGREP.

Any information on this is appreciated. :slight_smile:

You should just need to escape the slashes and asterix’s, and ensure that you use an ungreedy search

$file = file_get_contents('someFile.php');
$matches = array();
preg_match_all('/\\/\\*\\*(.*)\\*\\//smU', $file, $matches);
echo '<pre>',print_r($matches[1]),'</pre>';