title: Regex to match a period but not if there is a period on either side (Java)
body: <p>I'm looking for a regex that will match a period character, ONLY if none of that period's surrounding characters are also periods. </p>
  
  <pre><code> Fine by me... leave!    FAIL
  
   Okay.. You win.     SUCCEED
  
   Okay. SUCCEED //Note here, the period is the last char in the string.
  </code></pre>
  
  <p>I was thinking do:</p>
  
  <pre><code> [^\\.*]\\.       
  </code></pre>
  
  <p>But that is just wrong and probably not at all in the right direction. I hope this question helps others in the same situation as well.</p>
  
  <p>Thanks.  </p>