From: Lloyd Linklater Date: 2008-09-19T21:50:13+09:00 Subject: Re: Suggestion for string parsing William James wrote: > s = "Client=MPEG-4,390000,700000,24000" > ==>"Client=MPEG-4,390000,700000,24000" > if s =~ /^\w+=\S+(,\d+)+$/ > vars = s.split( /[=,]/ ) > end > ==>["Client", "MPEG-4", "390000", "700000", "24000"] You are right, William. That is cleaner. nice! -- Posted via http://www.ruby-forum.com/.