\w в регэкспах

surg30n

Новичок
\w в регэкспах

Происходит такая нехорошая вещь: на разных хостах \w почему то обрабатывается по разному: на одних - \w включает русские буквы, на других нет.

Собственно последнее требуется.

В чём камень, дайте пару напутственных.
 

Гравицапа

elbirret elcno
A "word" character is any letter or digit or the underscore character, that is, any character which can be part of a Perl "word". The definition of letters and digits is controlled by PCRE's character tables, and may vary if locale-specific matching is taking place (see "Locale support" above). For example, in the "fr" (French) locale, some character codes greater than 128 are used for accented letters, and these are matched by \w.
http://ru.php.net/manual/en/reference.pcre.pattern.syntax.php
 
Сверху