You could try:
s/\/\*.*?\*\///g;
Which stops the regex being greedy. Don't forget that your regex ignores comment characters that occur within strings.
In reply to Re: Kill C style comments
by pbeckingham
in thread Kill C style comments
by sonic
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |