[Rails] Re: Detecting Characters other the ASCII (Other than English)

2009-05-25 Thread timr
No /w will not work. And . (period) will not work either. here is asdjflaw日本erjocd some text the japanese within this text looks like this \346\227\245\346\234\254 in unicode. it would not be matched by /w (letter or number set) or . (any character). each of the \ddd sets in the unicode character

[Rails] Re: Detecting Characters other the ASCII (Other than English)

2009-05-25 Thread Marnen Laibow-Koser
Ibrahim Mokdad wrote: > Dear all > I kinda need help on a project I'm working on; and I'm stuck on the > part were I have to detect any Unicode character in the text file; > will regular expressions "\w" work ? > thnx in advance Why not . (period) in a regular expression? That should do what you