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/.