Ilmari Karonen wrote:
Hmm... I don't really know what's going on inside PHP's PCRE implementation, but you might want to try replacing that regexp with:
$parser->add( '/\/\*.*?\*\//s' );
The add()s are combined into a single big regex, you can't set dot-all. Doing it with (?s) may be factible, though.