$str = '
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/';
preg_match_all('|/\*.*?\*/|is', $str, $matches);
print_r($matches);
exit;
/\/[*]{2,}[^*]+[*]{2,}\//g;
正则
/\/\*[\s\S]\*\//U