I have a perl regexp that strips c++ comments (I have not constructed
this myself, found it here:
Perl Documentation - Perldoc Browser ). However, it
uses the ‘e’ modifier that will take the replacement value and evaluate
it. How do I get similar functionality in ruby?
perl regexp below:
s#//(.)|/*[^]*+([^/][^]*+)/|“(\.|[^”\])“|‘(\.|[^’\])‘|[^/"’]+#
$1 ? "/$1 */” : $& #ge;
/Nick