title: How to replace text over multiple lines using preg_replace
body: <p>Hi have the following content within an html page that stretches multiple lines</p>
  
  <pre><code>&lt;div class="c-fc c-bc" id="content"&gt;
                  &lt;span class="content-heading c-hc"&gt;Heading 1 &lt;/span&gt;&lt;br /&gt;
                  The Home Page must provide a introduction to the services provided.&lt;br /&gt;
                  &lt;br /&gt;
                  &lt;span class="c-sc"&gt;Sub Heading&lt;/span&gt;&lt;br /&gt;
                  The Home Page must provide a introduction to the services provided.&lt;br /&gt;
                  &lt;br /&gt;
                  &lt;span class="c-sc"&gt;Sub Heading&lt;/span&gt;&lt;br /&gt; 
                  The Home Page must provide a introduction to the services provided.&lt;br /&gt;
              &lt;/div&gt;
  </code></pre>
  
  <p>I need to replace everthing between <code>&lt;div class="c-fc c-bc" id="content"&gt;</code> and <code>&lt;/div&gt;</code> with custom text</p>
  
  <p>I use the following code to accomplish this but it does not want to work if it's multiple lines, but works if evertinh is in one line</p>
  
  <pre><code>$body = file_get_contents('../../templates/'.$val['url']);
  
  $body = preg_replace('/&lt;div class=\"c\-fc c\-bc\" id=\"content\"&gt;(.*)&lt;\/div&gt;/','&lt;div class="c-fc c-bc" id="content"&gt;abc&lt;/div&gt;',$body);
  </code></pre>
  
  <p>Am I missing something?</p>