As we have a lot of russian members here, maybe someone can help: I couldn't find much information wether it's possible to check for cyrillic characters (А-Я) with a regular expression in PHP. Any hints are highly appreciated!
Thanks!
Page 1 of 1
Regex for Cyrillic characters
#2
Posted 23 July 2009 - 08:17 AM
#3
Posted 24 July 2009 - 03:14 AM
Thanks. Did you verify this? I thought there are some problems with UTF-8 + regex. A comment in the PHP manual says, that PCRE functions aren't UTF-8 safe. It states that you can only use mb_ereg* functions and need to alter this:
<?php
mb_internal_encoding('UTF-8');
mb_regex_encoding('UTF-8');
setlocale(LC_ALL, 'fr-fr');
Share this topic:
Page 1 of 1

Help
















