in reply to removing C style comments from text files
use Regexp::Common; $string =~ s/$RE{comment}{C}//g;
Note that this (just like the regexes presented in the rest of this thread) isn't context aware, and happily removes "comments" from strings.
Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: removing C style comments from text files
by EdwardG (Vicar) on Jan 06, 2004 at 12:49 UTC | |
by Abigail-II (Bishop) on Jan 06, 2004 at 13:16 UTC |