note 90230 added to function.mb-ereg

From: Date: Sat, 11 Apr 2009 11:22:20 +0000
Subject: note 90230 added to function.mb-ereg
Groups: php.notes 
Request: Send a blank email to php-notes+get-153077@lists.php.net to get a copy of this message
Hebrew regex tested on PHP 5, Ubuntu 8.04. Seems to work fine without the mb_regex_encoding lines (commented out). Didn't seem to work with \uxxxx (also commented out). echo "Line "; //mb_regex_encoding("ISO-8859-8"); //if(mb_ereg(".*([\u05d0-\u05ea]).*", $this->current_line)) if(mb_ereg(".*([א-ת]).*", $this->current_line)) { echo "has"; } else { echo "doesn't have"; } echo " Hebrew characters.<br>"; //mb_regex_encoding("UTF-8"); ---- Server IP: 82.80.248.162 Probable Submitter: 212.235.119.21 ---- Manual Page -- http://www.php.net/manual/en/function.mb-ereg.php Edit -- https://master.php.net/note/edit/90230 Del: integrated -- https://master.php.net/note/delete/90230/integrated Del: useless -- https://master.php.net/note/delete/90230/useless Del: bad code -- https://master.php.net/note/delete/90230/bad+code Del: spam -- https://master.php.net/note/delete/90230/spam Del: non-english -- https://master.php.net/note/delete/90230/non-english Del: in docs -- https://master.php.net/note/delete/90230/in+docs Del: other reasons-- https://master.php.net/note/delete/90230 Reject -- https://master.php.net/note/reject/90230 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#153077) next »