On Thu, 23 Sep 2004, ts wrote: >>>>>> "A" == Ara T Howard <Ara.T.Howard / noaa.gov> writes: > > A> if s.strip.empty? > A> # the string is whitespace only > > svg% ruby -e 'a = " \000\000"; p "OK" if a.strip.empty?' > "OK" > svg% > > svg% ruby -e 'a = " \000\000 "; p "OK" if a.strip.empty?' > svg% ahh! that's terrible - i didn't know String#strip did that! the docs say "Returns a copy of str with leading and trailing whitespace removed." since when is NUL whitespace!? defintely against POLS. thanks for the pointer. -a -- =============================================================================== | EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov | PHONE :: 303.497.6469 | A flower falls, even though we love it; | and a weed grows, even though we do not love it. | --Dogen ===============================================================================