in reply to Re: Re: Regular Expressions to ignore lines starting with #
in thread Regular Expressions to ignore lines starting with #

I use to do it like:
next if /^\s*(#.*)?$/;
skipping "empty" lines too, which of course will fail if you use HERE document like constructs.

Replies are listed 'Best First'.
Re: Re: Re: Re: Regular Expressions to ignore lines starting with #
by lanier (Initiate) on May 20, 2003 at 12:51 UTC
    I have tried all the combinations that you all have suggested and I understand the syntax but the pattern I am looking for is not being identified in the first file only in the 2nd file and I can't understand why, because they have basically both the same info with some exceptions.