Code: Select all
$temp_name = 'john';
if(!ereg('^їA-Za-zÀ-ÖØ-öø-ÿї:digit:]_]{1,20}', $temp_name)) {
echo 'regex does not match.';
} else {
echo 'regex does match.';
}Code: Select all
Warning: Invalid range end in test.php on line 2
regex does not match.Any ideas?
Currently running PHP v.4.0.3 [trust me, it's not my choice, my ISP pretty much decides this stuff for me =[.
Any help would be appreciated. Thanks in advance.
[Edit: corrected the error line number, since it didn't match the c'n'p code above.]