[HRPM] matching blank lines

Lyman Byrd lbyrd at memach.com
Mon Nov 6 16:40:26 CST 2000


Would something like 
^\s+$ work?
Lyman

On 06-Nov-2000 Troy E. Webster wrote:
> Ok time for a stupid question,
> 
> I need a bullet proof way to match a blank line with whatever
> whitespace
> is on it.
> 
> using $line eq "\n" isn't working in all cases.
> 
> Isn't there a way to match *only* whitespace using the =~ operator?
> 
> Thanks,
> Troy
> 
> ______________________________________________________________________
> _____
> ``Beware of bugs in the above code; I have only proved it correct,
> not
> tried it.''  -Don Knuth
> ----------------------------------------------------------------------
> -----

----------------------------------
E-Mail: Lyman Byrd <lbyrd at memach.com>   Tel: 757.543.6801x253
     Date: 06-Nov-2000     Time: 17:39:01
    The opinions expressed here do not 
necessarily reflect those of Metro Machine Corp. 
----------------------------------



More information about the Norfolk-pm mailing list