title: Why does the argument to string.search behave like a Regex?
body: <p>I don't know about other Javascript engines, but in V8, including Chrome and <a href="http://nodejs.org/" rel="noreferrer">Node.js</a>, <code>String.prototype.search</code> behaves in an unexpected fashion.</p>
  
  <pre><code>&gt; "054".search("0.4")
  0 // expected -1
  &gt; "Sample String 007".search("0.7")
  14 // expected -1
  &gt; "Sample String 0.7".search("0.7")
  14 // expected behavior
  </code></pre>
  
  <p>If this is the expected behavior, why is that the case?  And if this is the expected behavior, how do I properly search for a String without regular expressions coming in to play?</p>