title: PHP regex remove non alphanumeric except period
body: <p>I'm having trouble finding a solution to this. How can I avoid losing the period in this regex?</p>
  
  <pre><code>$text = preg_replace('~[^\\pL\d]+~u', '-', $text);
  </code></pre>