s/\/\*.*\*\///g;
Slightly OT, but when your regex is going to contain a lot of backslashes, I find it is a lot easier to read if you change the regex delimiter to something other than '/', like maybe '#' or '!'. Also you can use character classes (square brackets) around characters like '/' to help out some too. I can't stand reading regexes that contain escaped slashes and backslashes that still use '/' as the delimiter. They can cause brain damage.
But yeah, if Regex::Common or something already posted here can deal with it, good deal.
In reply to Re: Kill C style comments
by flyingmoose
in thread Kill C style comments
by sonic
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |