Harry Kakueki wrote: > On 5/17/07, Jon Fi <exabrial / gmail.com> wrote: > If you want to use regular expressions, try 'scan'. > > c=" <orderMsg type=7 size=0 biz=1>" > c.scan(/\w+=?\w+/).each {|f| p f.split("=")} > > Modify the regular expression as necessary. > > Harry Brilliant. Exactly what i was looking for. -- Posted via http://www.ruby-forum.com/.