From: Jay Levitt Date: 2007-10-01T06:10:03+09:00 Subject: Re: Detecting number ranges On Thu, 27 Sep 2007 10:27:28 -0700, William James wrote: > Change > ary = DATA.readlines > to > ary = DATA.readlines ; p ary > and see what you get. > Your lack of output could be caused by an added space at the end > of each data line. Ah, close - it's a Windows carriage return which Cygwin doesn't like. That's what happens when I use some Cygwin and some Windows apps simultaneously. I was getting ["database 8 is on server 7\r\n",...\ And while "7\n"[/\d+$/] == "7", "7\r\n"[/\d+$/] == nil, at least on Cygwin. Thanks. -- Jay Levitt | Boston, MA | My character doesn't like it when they Faster: jay at jay dot fm | cry or shout or hit. http://www.jay.fm | - Kristoffer