From: Nikolai Weibull Date: 2005-06-12T07:08:37+09:00 Subject: Re: Regular expression problem sujeet kumar wrote: > str = "www.rubycentral.com/ - 4k - a" > temp.scan(/(#008000>)(^())*()/) {|w| print "#{w} \n" } You can use the following regular expression (which isn’t very flexible): /#008000>(.*?)/ That’ll slurp up anything from the end of the to the beginning of the , so to speak. > But this gives error > Reg.rb:4: warning: Object#type is deprecated; use Object#class That’s a warning, and it’s unrelated to your matching, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}