title: Regular expression to extract json response in php
body: <p>I'm new to php and am trying to write a regular expression using preg_match to extract the href value that I get from my http get.
  The response looks:</p>
  
  <pre><code>{"_links":{"http://a.b.co/documents":{"href":"/docs"}}}
  </code></pre>
  
  <p>I want to extract only the href value and pass it to my next api... i.e. /docs.
  Can anyone please tell me how to extract this?
  I've been using <a href="http://www.solmetra.com/scripts/regex/index.php" rel="nofollow">http://www.solmetra.com/scripts/regex/index.php</a> to test my regex.. and had no luck since last one day :(</p>
  
  <p>please any help would be appreciated.</p>
  
  <p>Thanks,
  DR</p>