title: Regular expression for range checking for non ASCII characters in Ruby
body: <p>I want to split the characters that are not in ASCII format i.e UTF-8.
  I wrote this line of code</p>
  
  <pre><code>result = string.scan(/[\x0600-\x06ff]/)
  </code></pre>
  
  <p>And somehow it is not working, and give error </p>
  
  <pre><code>"empty range in char class : /[\x0600-\x06ff]/".
  </code></pre>
  
  <p>I just want to check if a character falls in range of regular expression. If so,  then split it out.</p>