title: ruby regex match any character besides a specific one
body: <p>I am looking for a way to match any character besides, for example, a "#."</p>
  
  <p>It would look something like...</p>
  
  <pre><code>gsub(/^foo.*foo$/)
  </code></pre>
  
  <p>But I'd want it to match</p>
  
  <pre><code>"foofdfdfdfoo"
  </code></pre>
  
  <p>But not</p>
  
  <pre><code>"fooddgdgd#fdfoo"
  </code></pre>
  
  <p>Thanks.</p>