From: Drew Raines Date: 2007-03-30T07:05:17+09:00 Subject: Re: Regex problem... Tried Searching forum already... :( Drew Raines wrote: > Jon wrote: > >> puts reg.match(line)[1] > > Try this: > > puts line.match(reg)[1] > > The #match method is in String, not Regexp. Actually, that's not correct. I didn't realize there's a Regexp#match too that works similarly. Besides, your exception would have been different had that been the case. The simplest answer is that your regexp isn't getting matched, so #match isn't returning a MatchData object. You'll have to figure out why. -Drew