> The perl regular expression you are looking for is
>
> s/\/\*.*\*\///
>
> Remember that * and / are special characters and need to be
> escaped as \*
> and \/
> So, the expression above reads
>
> s/ -- start of substitution
> \/\* -- match /*
> .* -- The means any non newline character (This would
> include the / that
> you had in your second example
> \*\/ -- match */
> // -- replace the matched expression with nothing (in
> otherwords, remove
> it)
Most regexp parsers allow other than "/" as regex delimeters (does oro?), so you wouldn't need to backwhack the /'s.
The above becomes the *SLIGHTLY* more readable:
s|/\*.*\*/||
s| substitute...
/ slash followed by...
\* star followed by...
.* any number (*) of any character (.) followed by...
\* star followed by
/ slash
|| with nothing.
