title: regex to get some JSON inside test
body: <p>I have some texts formatted in this way:</p>
  
  <pre><code>var string = 'some random text fjijd {"Type":"NewTunnel","Payload":{"ReqId":"e425ebb50d220816","Url":"asaa","Protocol":"http","Error":""}} some other text bla bla'
  </code></pre>
  
  <p>I am wondering how can i extract the json stringified object that can be parsed then with a regex.</p>
  
  <h1>Update</h1>
  
  <p>I am running a sub process from node.js application using <code>spawn</code> and the <code>stdout</code> data (that is application log <code>-log=stdout</code>) in plain text formatted in this way. Don't ask me how and why, sorry!</p>
  
  <pre><code>var cproc = require("child_process");
  proc = cproc.spawn("./ngrok", ['-log=stdout', '8080']);
  proc.stdout.on("data", function(res) {
    console.log("Data received: " + res);
  });
  </code></pre>
  
  <p>Data received is plain text, something like this:</p>
  
  <pre><code>[08/10/14 01:49:37] [DEBG] [ctl:604a481c] Read message {"Type":"ReqProxy","Payload":{}}
  </code></pre>
  
  <p>It includes also debugging infos!</p>