[plug] Re: perl program to strip blank lines from a file

David Buddrige buddrige at wasp.net.au
Tue May 18 15:48:53 WST 2004


J Michael Gilks writes:
> RegEx needs to find any whitespace on a blank line, so
> /^\s$/
> will do the trick.

Will this only find a line that contains a single whitespace (or tab)?  For 
instance, if a line is: 

\t\t\n 

Will this be picked up? 

To pick up this, what about 

   /^\s*$/ 

or 

   /^\s+$/ 

thanks 


David. 

thanks 

David. 8-) 



More information about the plug mailing list