note 83393 added to function.preg-match

From: Date: Fri, 23 May 2008 14:08:37 +0000
Subject: note 83393 added to function.preg-match
Groups: php.notes 
Request: Send a blank email to php-notes+get-139648@lists.php.net to get a copy of this message
Here is a way to extend your expression to handle various variants on the alphabet such as accents, graves, umlauts etc. print preg_match('/^[\%\w\À-Ö\Ø-ö\ø-ÿ]+\z/', 'Siobhán'); // 1 ---- Server IP: 92.48.74.199 Probable Submitter: 137.73.37.15 ---- Manual Page -- http://www.php.net/manual/en/function.preg-match.php Edit -- https://master.php.net/note/edit/83393 Del: integrated -- https://master.php.net/note/delete/83393/integrated Del: useless -- https://master.php.net/note/delete/83393/useless Del: bad code -- https://master.php.net/note/delete/83393/bad+code Del: spam -- https://master.php.net/note/delete/83393/spam Del: non-english -- https://master.php.net/note/delete/83393/non-english Del: in docs -- https://master.php.net/note/delete/83393/in+docs Del: other reasons-- https://master.php.net/note/delete/83393 Reject -- https://master.php.net/note/reject/83393 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#139648) next »