title: Search for a string with a point in JavaScript
body: <p>When I try to seach for a string with a point (i.e. <code>'1.'</code>), js also points to substrings with commas instead of points. It's better to look at the example:</p>
  
  <pre><code>'1,'.search('1.');        // 0
  'xxx1,xxx'.search('1.');  // 3
  // Normal behaviour
  '1.'.search('1,');        // -1
  </code></pre>
  
  <p>Does anyone know why JavaScript behave itself so?
  Is there a way to search for exactly passed string?</p>