Javascript String Search Using String As Regex
===

I don't know about other Javascript engines, but in V8, including Chrome and [Node.js][1], `String.prototype.search` behaves in an unexpected fashion.

    > "054".search("0.4")
    0 // expected -1
    > "Sample String 007".search("0.7")
    14 // expected -1
    > "Sample String 0.7".search("0.7")
    14 // expected behavior

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?

  [1]: http://nodejs.org/