On Mon, Aug 20, 2001 at 08:27:41AM -0400, Jeff 'japhy/Marillion' Pinyan wrote: > $str =~ /\s*/; > my $leading = length $1; that would be $str =~ /(\s*)/; OR my $leading = length $&; > ** Look for "Regular Expressions in Perl" published by Manning, in 2002 ** But I'm sure you knew that ;-) -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
- How to count the number of whitespaces at th... Darren Edgerton
- Re: How to count the number of whitespa... Me
- Re: How to count the number of whitespa... Jeff 'japhy/Marillion' Pinyan
- Re: How to count the number of whitespa... Paul Johnson
- Re: How to count the number of whitespa... Jeff 'japhy/Marillion' Pinyan
- Re: How to count the number of whitespa... nfutter
- Re: How to count the number of whitespa... Curtis Poe
- Re: How to count the number of whitespa... Jeff 'japhy/Marillion' Pinyan
- Re: How to count the number of whit... Jeff 'japhy/Marillion' Pinyan
- Re: How to count the number of whit... Curtis Poe