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