note 113449 added to regexp.reference.unicode

From: Date: Fri, 11 Oct 2013 19:51:45 +0000
Subject: note 113449 added to regexp.reference.unicode
Groups: php.notes 
Request: Send a blank email to php-notes+get-196531@lists.php.net to get a copy of this message
If you are working with older environments you will need to first check to see if the version of PCRE will work with unicode directives described above: <?php // Need to check PCRE version because some environments are // running older versions of the PCRE library // (run in *nix environment pcretest -C) $allowInternational = false; if (defined('PCRE_VERSION')) { if (intval(PCRE_VERSION) >= 7) { // constant available since PHP 5.2.4 $allowInternational = true; } } ?> Now you can do a fallback regex (e.g. use "/[a-z]/i"), when the PCRE library version is too old or not available. ---- Server IP: 69.147.83.199 Probable Submitter: 207.7.104.10 ---- Manual Page -- http://php.net/manual/en/regexp.reference.unicode.php Edit -- https://master.php.net/note/edit/113449 Del: integrated -- https://master.php.net/note/delete/113449/integrated Del: useless -- https://master.php.net/note/delete/113449/useless Del: bad code -- https://master.php.net/note/delete/113449/bad+code Del: spam -- https://master.php.net/note/delete/113449/spam Del: non-english -- https://master.php.net/note/delete/113449/non-english Del: in docs -- https://master.php.net/note/delete/113449/in+docs Del: other reasons-- https://master.php.net/note/delete/113449 Reject -- https://master.php.net/note/reject/113449 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#196531) next »