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 would be matched by a . (period)
I am sure someone has a solution for this, but it is not me. unicode geniuses HEEEEELLLLLP ください。 tim On May 25, 9:27 am, Marnen Laibow-Koser <rails-mailing-l...@andreas- s.net> wrote: > 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 > want. > > Best, > -- > Marnen Laibow-Koserhttp://www.marnen.org > mar...@marnen.org > -- > Posted viahttp://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---