in reply to Adapting parenthesis in regexps

Why not just split on /,\s*/ then parse out /([^=]+)=(.*)/?

Update: And as to your question about the empty element, when your split regexp contains capturing parens the matched delimiters are returned as well as the delimited fields.