in reply to Quarms with RegEx
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/)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Quarms with RegEx
by blakem (Monsignor) on Aug 28, 2001 at 12:53 UTC | |
by busunsl (Vicar) on Aug 28, 2001 at 12:57 UTC | |
by blakem (Monsignor) on Aug 28, 2001 at 13:31 UTC | |
by busunsl (Vicar) on Aug 28, 2001 at 13:53 UTC | |
|
Re: Re: Quarms with RegEx
by stefan k (Curate) on Aug 28, 2001 at 12:47 UTC |