I have a strings in different languages. I need to get only characters without numbers, '-', '/', ')', ... But seams JavaScript regexp '\w' matches only English.
http://jsfiddle.net/d9BRC/
            Asked
            
        
        
            Active
            
        
            Viewed 2,055 times
        
    0
            
            
        
        Oleg Dats
        
- 3,933
 - 9
 - 38
 - 61
 
- 
                    check http://www.regular-expressions.info/unicode.html – Oussama Jilal Aug 22 '12 at 11:22
 
1 Answers
3
            After a bit of research, it seems \w does not handle unicode characters, you can do this with \p{L} (Letters), but again javascript does not support this.
Here is a solution, taken from this answer