From: Kevin Ballard Date: 2005-10-13T01:36:55+09:00 Subject: Re: Ruby noob with a coming from Python question James Edward Gray II wrote: > If you go back and look at the original code now, I was hoping that > would save all the random calls to strip() when Hash data is > accessed, thought the "=" split() pattern may also need to become / > \s*=\s*/ to get leading whitespace. Ohh, leave *off* some strips. I see what you mean. Perhaps an easier solution would be to just use readlines, but then call strip() on both key and value? That takes care of any whitespace, whether it be leading the line, trailing, or around the equals sign.