This is ugly, but it (kind of) works:
resp = Base64.decode64(elem.text)
re = /(\w+\s*=\s*(?:(?:"[^"]+")|(?:[^,]+)))/
m = re.match resp
response = {}
k, v = m[1].split('=',2)
v.gsub!(/^"(.*)"$/, '\1')
response[k] = v
while (m = re.match m.post_match)
k, v = m[1].split('=',2)
v.gsub!(/^"(.*)"$/, '\1')
response[k] = v
end
Unfortunately, it also kills the '=' on cnonce.
_______________________________________________
JDev mailing list
FAQ: http://www.jabber.org/discussion-lists/jdev-faq
Forum: http://www.jabberforum.org/forumdisplay.php?f=20
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: [EMAIL PROTECTED]
_______________________________________________