title: PHP regular expression for text with json data
body: <p>I'm looking for a PHP regular expression to match a pattern for multiple set of json data in a text string.</p>
  
  <blockquote>
    <p>Paragraph One text</p>
    
    <p>[[{"fid":"28","view_mode":"teaser","fields":{},"type":"media","attributes":{"class":"media-element file-teaser"},"link_text":null}]]</p>
    
    <p>Second Paragraph</p>
    
    <p>[[{"fid":"26","view_mode":"preview","fields":{},"type":"media","attributes":{"class":"file media-element file-preview"},"link_text":"mohan sample.mp4"}]]</p>
  </blockquote>
  
  <p>Above is the example text with json samples, i want to extract the value of "fid" from each json data.</p>
  
  <p>Any suggestions?</p>