title: Htaccess Regular expression to match any character
body: <p>I am using this regular expression on my htaccess:</p>
  
  <pre><code>RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^([A-Za-z0-9_-\s]+)/([A-Za-z0-9_-\s]+)/?$ index.php?param1=$1&amp;param2=$2 [L,NC]
  </code></pre>
  
  <p>The problem is this works with any variation of this:</p>
  
  <pre><code>example.com/search/test product 123
  example.com/search/test+product+123
  example.com/search/testproduct123
  example.com/search/test%20product%20123
  </code></pre>
  
  <p>But when I throw a period (.) into it it doesn't match and I get a 404 message. I'm a rookie to regular expression and cannot figure out the syntax to add to [A-Za-z0-9_-\s] to allow all characters. I believe [.*] would work but it still send me to a 404.I want to allow period in the rewrite rule with what I currently have.</p>
  
  <h1>Updated:</h1>
  
  <p>So how would I take this:</p>
  
  <pre><code>^([A-Za-z0-9_-\s]+)/([A-Za-z0-9_-\s]+)/?$
  </code></pre>
  
  <p>And allow it to recognize a string like this:</p>
  
  <pre><code>search/st.+charles
  </code></pre>