From: Ahmad Azizan Date: 2009-11-10T03:35:21+09:00 Subject: Re: Regexp: getting the first found Ralph Shnelvar wrote: > Ahmad, > > Newbie here so take what I have to say with a grain of salt. > > Your pattern is "greedy". To turn it into a lazy pattern add a > question mark thusly ... > > /<<(.*)\/Filter(.*?)>>/ > > (untested) > > Ralph > Thanks for the reply. Basically that's what I need. Thanks for pointing me towards new options like "greedy". Because of that, I've been able to find new Ruby regex reference like http://www.tutorialspoint.com/ruby/ruby_regular_expressions.htm Really appreciate that, thanks -- Posted via http://www.ruby-forum.com/.