Can anyone get me with the regular expression to strip multiline comments and single line comments in a file?
eg:
\" WHOLE
Remove /* */ comments (including multi-line)
s/\/\*.*?\*\///gs
I post this because it is simple, however I believe it will trip up on embedded comments like
/* sdafsdfsdf /*sda asd*/ asdsdf */
But as they are fairly uncommon I prefer the simple regex.