title: Regex to remove special characters from a string
body: <p>I'm trying to write a regex that only allows letters, numbers, single white spaces, <code>'-'</code> literal, and <code>'/'</code> literal. How do I limit my expression to only these?</p>
  
  <p>If I enter <code>"This should be invalid because it ends with!!! these"</code>, it is still returned as a valid string, even though there's an exclamation at the end.<br>
  The one I have is not entirely correct:</p>
  
  <pre><code>[A-Z]|[a-z]|[0-9]|/|\s|-
  </code></pre>