|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2010-07-14 07:32 UTC] a dot dobkin at drweb dot com
  [2010-07-16 07:01 UTC] aharvey@php.net
 
-Status: Open
+Status: Bogus
  [2010-07-16 07:01 UTC] aharvey@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 06:00:01 2025 UTC | 
Description: ------------ Metacharacter \d in a regular expression causes an error on some Russian letters on OS Windows. Example script: $user_name_ru = "Василий"; $regexp = "/[\d\!\@\#\%\$\^&*\(\)\~\=\/\|\"\'\?\:\;\/]+/"; if( preg_match( $regexp,$user_name_ru ) ) { echo 'ERR'; } else { echo 'OK'; } preg_match() return true if word contains one or more characters 'й', 'г', 'в'. If to delete metacharacter '\d' preg_match() returns false. If you are using php version 5.2.13 all works correctly.