title: How to match regex with end of line?
body: <p>I'm trying to write a regex that does the following:
  - look for at least one <code>=</code>, and take these <code>=</code>  up to either 1) end of line, or 2) a dot <code>.</code></p>
  
  <p>The regex: </p>
  
  <p><code>[=]+?[=]+.*?[.$]+</code></p>
  
  <p>Teststrings:</p>
  
  <pre><code>b == 123 //does not match, but which should as it is end of line!
  b == 123. //does match "== 123.", which is OK
  b == 123.abc //does match "== 123.", which is OK
  </code></pre>
  
  <p>What am I missing here with the endofline <code>$</code> anchor?</p>