How to get two variables from the string?
<p>I have this string: <code>'foo = bar; this = is; not = necessary'</code></p>

<p>I would like to get this result: <code>{"name" : "foo", "value" : "bar"}</code></p>

<p>It is not necessary, what is after the ;</p>

<p>I know, I should use some regexp, but I don't really understand how regexp works.</p>

<p>Thanks is advance,</p>
