in reply to Re: Re: Regular Expressions to ignore lines starting with #
in thread Regular Expressions to ignore lines starting with #
and i would do it like this:
s/#.*$//; next if /^$/;
to remove any comment (up to end of line) and skip if there's nothing left. but this might be stretching the requirement a bit.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Regular Expressions to ignore lines starting with #
by sauoq (Abbot) on May 19, 2003 at 20:22 UTC |