next if /^#/;
I'd likely do it similarly but I'd change the regex a bit. Using /^\s*#/ will skip lines where the first non-whitespace character is an octothorpe, not just the first character. That's usually how comments are defined.
-sauoq "My two cents aren't worth a dime.";
In reply to Re: Re: Regular Expressions to ignore lines starting with #
by sauoq
in thread Regular Expressions to ignore lines starting with #
by lanier
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |