title: How to replace a range of binary characters
body: <p>How do I replace a range of binary characters, similar to having a range of regular characters (<code>"[a-z]"</code>) in a regexp?  I'm trying this:</p>
  
  <pre><code>2.4.0 :016 &gt; text.gsub([160.chr-194.chr], ' ')
  NoMethodError: undefined method `-' for "\xA0":String
  Did you mean?  -@
    from (irb):16
    from /Users/davea/.rvm/gems/ruby-2.4.0@global/gems/railties-5.0.1/lib/rails/commands/console.rb:65:in `start'
    from /Users/davea/.rvm/gems/ruby-2.4.0@global/gems/railties-5.0.1/lib/rails/commands/console_helper.rb:9:in `start'
    from /Users/davea/.rvm/gems/ruby-2.4.0@global/gems/railties-5.0.1/lib/rails/commands/commands_tasks.rb:78:in `console'
    from /Users/davea/.rvm/gems/ruby-2.4.0@global/gems/railties-5.0.1/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
    from /Users/davea/.rvm/gems/ruby-2.4.0@global/gems/railties-5.0.1/lib/rails/commands.rb:18:in `&lt;top (required)&gt;'
    from bin/rails:4:in `require'
    from bin/rails:4:in `&lt;main&gt;'
  </code></pre>
  
  <p>but I am getting the </p>
  
  <pre><code>NoMethodError: undefined method `-' for "\xA0":String
  </code></pre>
  
  <p>error that you see above.  </p>
  
  <p>I don't have to use a regular expression, but couldn't think of anything else that allowed me to substitute a range of things.</p>
  
  <p>I'm using Ruby 2.4.  </p>