title: Regex / Remove slash from string in ruby
body: <p>Thanks in advance...</p>
  
  <p>I am having some trouble with regular expressions in ruby, or otherwise finding a way to remove a slash from a string.  Here is how my string looks:</p>
  
  <pre><code>string = "word \/ word"
  </code></pre>
  
  <p>I am trying to remove both the backslash and the slash; I want this result:</p>
  
  <pre><code>string = "word  word"
  </code></pre>
  
  <p>I think I am missing something with escape characters, or who knows what!</p>
  
  <p>I have tried this:</p>
  
  <pre><code>string.gsub(/\//, "")
  </code></pre>
  
  <p>which will remove the backslash, but leaves the slash.  I have tried variations with escape characters all over and in places that don't even make sense!  </p>
  
  <p>I am terrible with regex and get very frustrated working with strings in general, and I am just at a loss.  I'm sure it's something obvious, but what am I missing?</p>