>At 15:49 09.07.2001 -0700, Wagner-David wrote:
>> Change:if ( /^Kilobytes:(.*)$/ ) to if ( /^Kilobytes:\s*(\d*)$/ )
>>
>> where $1 will have your count without leading spaces. You may want
>>a test to verify that you did get a hit on digits.
>>
>>Wags ;)
>
>That only works if the text following Kilobytes: is always some spaces and
>then a string of numbers. What if you've got non-numbers?
>
>how about:
>
>if(/^Kilobytes:[\s\t]*([^\s\t]+)$/)
>
>which adds the possibility of tabs being used instead of spaces (just in
>case :)
Before everyone jumps, the tabs/spaces foot in my mouth has already been
pointed out to me.
I won't even try to make an excuse...there is none :)
Aaron Craig
Programming
iSoftitler.com