title: How to match a newline \n in a perl regex?
body: <p>I want to match this line,</p>
  
  <pre><code>&lt;center&gt;'''&lt;font color="blue"&gt;&lt;font size="18.0pt"&gt;No Change Alarms Help &amp;amp; Information&lt;/font&gt;&lt;/font&gt;'''&lt;/center&gt;
  </code></pre>
  
  <p>and replace it with,</p>
  
  <pre><code>=&lt;center&gt;'''&lt;font color="blue"&gt;No Change Alarms Help &amp;amp; Information&lt;/font&gt;'''&lt;/center&gt;=
  </code></pre>
  
  <p>Now it would be simple if the tags were always font colour or center, but they can be absolutely anything and there can be multiple of them.</p>
  
  <p>My current code is this:</p>
  
  <pre><code>$html =~ s/&lt;font size=".+"&gt;(.+)&lt;\/font&gt;/$1/g;
  </code></pre>
  
  <p>but this obviously does not do the = on each end.</p>
  
  <p>What I would like to do is this:</p>
  
  <pre><code>$html =~ s/\n(.+)&lt;font size=".+"&gt;(.+)&lt;\/font&gt;(.+)\n/=$1$2$3=/g;
  </code></pre>
  
  <p>However it fails to match the newline characters and I cannot figure out how to make it match them, any clues?</p>
  
  <p>(I'm converting html to wiki markup, however the converter stuffs up the font sizes so I'm manually converting them to wiki style headings.)</p>