is wrong.if ($curline !~ /^#\s/ or $curline !~ /^\s/)
You almost never want two negative conditions combined with 'or'.
Try 'and' between the conditions:
if ($curline !~ /^#\s/ and $curline !~ /^\s/)
In reply to Re: Quarms with RegEx
by busunsl
in thread Quarms with RegEx
by TraderX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |