title: Regex for huge string
body: <p>I have the below string:</p>
  
  <pre><code>"\n  - MyLibrary1 (= 0.10.0)\n  - AFNetworking (= 1.1.0)\n  - MyLibrary2 (= 3.0.0)\n  - Objective-C-HMTL-Parser (= 0.0.1)\n\n"
  </code></pre>
  
  <p>I want to create a JSON like this:</p>
  
  <pre><code>{
  "MyLibrary1": "0.10.0",
  "AFNetworking": "1.1.0",
  "MyLibrary2": "3.0.0",
  "Objective-C-HMTL-Parser": "0.0.1"
  }
  </code></pre>
  
  <p>For which I need to separate "MyLibrary1" and "0.10.0" and similarly other data to create a string. I am working on a regex to separate data from the string.</p>
  
  <p>I tried <code>/-(.*)/</code> and <code>/=(.*)/</code> but this returns me everything after <code>-</code> and <code>=</code>.</p>
  
  <p>Is there a way to get the required data using single regex?  Also how do I let regex know that it needs to stop at <code>(</code> or <code>)</code>. I am using <a href="http://rubular.com/" rel="nofollow">Rubular</a> to test this and whenever I type <code>(</code> or <code>)</code> I get "You have an unmatched parenthesis."</p>