From: Robert Dober Date: 2007-03-17T07:25:29+09:00 Subject: Re: [Slightly OT] Case against ".*" regexp On 3/16/07, Jan Friedrich wrote: > Edgardo Hames schrieb: > > Some time ago I remember reading a post in this list against using > > ".*" regexp but I cannot find it -- I guess I don't remember the right > > keywords :( > Did you probably mean this thread? > http://www.ruby-forum.com/topic/100364 > Hmm I am not sure this one was what OP meant, was there not a problem with the greedy match eating up "<" s in xml/html if I remember correctly OPITOP (OP in the other post ;) asked why %r{(<.*>)*} === "" Regexp.last_match.captures gave [''] instead of ['', '', ''] > regards > Jan > > HTH Robert -- You see things; and you say Why? But I dream things that never were; and I say Why not? -- George Bernard Shaw