From: Ale Ds Date: 2009-10-28T23:12:32+09:00 Subject: Regexp: rubular VS match. Why is the result different ? I have to capture by means of regexp the content between '<' and '>' as instance: str = 'anystringanystringanystringanystring' I need the array['hour','min,'sec'] I have written the regexp: /(<([^<>]+)>)+/ and I have tested it in rubular.com site (It work !) I have run it in irb: >> /(<([^<>]+)>)+/.match('anystringanystringanystringanystring') => #" 1:"" 2:"hour"> >> As you can see match method return just the first match in MatchData obj Do you know why ? thank you, Alessandro -- Posted via http://www.ruby-forum.com/.