From: Robert Klemme Date: 2011-09-12T23:32:47+09:00 Subject: Re: Regex Problem On Fri, Sep 9, 2011 at 9:39 PM, Gavin Kistner wrote: > On Sep 9, 2011, at 9:25 AM, "Cyril J." wrote: > >> Thanks Pat rubular helped a lot. >> I used : >> >> ([0-9]*[_][0-9]*[_][0-9]*[_]) > > Equivalent: /(\d*_\d*_\d*_)/ > > Or even: /((?:\d*_){3})/ Cyril, are you sure you want to also match "___"? If not, use /(?:\d+_){3}F3/ Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/