From: Nobuyoshi Nakada Date: 2007-05-11T13:46:14+09:00 Subject: Re: regex \w allows non english characters Hi, At Fri, 11 May 2007 04:25:42 +0900, Kyle Schmitt wrote in [ruby-talk:251082]: > I'm making a guess here, but ruby is probably looking at the Hebrew > characters as a normal range of chars, with a character encoding. Now > what encoding Hebrew uses I'm not sure, but for instance the ascii > code for 'a' is 97. The code for one of the Hebrew characters is > probably 97 also. Since ruby doesn't really do UTF, it just sees two > characters, both with a code of 97, and lets them through. /[[:alpha:]]/u -- Nobu Nakada