title: Regular Expression allow characters and 1 dot only between
body: <p>I want a regular expression which only allows a-z characters and 1 dot only <strong>between</strong> characters, not in the beginning or end of the string, here is what I've got:</p>
  
  <pre><code>var myRegexp = /^[a-zA-Z]*(\.{1}[a-zA-Z]*)?$/;
  </code></pre>
  
  <p>But it also allows the dot to be the first or the last character, how could I disallow dot in beginning or at the end of string?</p>
  
  <p>The above code works in JS, how about the same regular expression in PHP with preg_match()?</p>
  
  <p>Thanks in advance</p>