title: Detecting if period exists in a string
body: <p>I apologize if this seems like a dumb question, but how would I go about searching a string to see if it contains a period? I've tried searching:</p>
  
  <pre><code>var p="This is text without a period, What now?"
  
  alert(p.search("."));
  </code></pre>
  
  <p>I was under the impression that it should return -1 because there is no period in that sentence. However, it always returns 0.</p>
  
  <p>Am I missing something?  </p>