note 109536 added to ref.regex

From: Date: Fri, 27 Jul 2012 02:17:35 +0000
Subject: note 109536 added to ref.regex
Groups: php.notes 
Request: Send a blank email to php-notes+get-189414@lists.php.net to get a copy of this message
So i did like to get Ü Å Ä Ö and some more in to my check for things. $chars = array('À', 'Á', 'Â', 'Ã', 'Ä', 'Å', 'Æ', 'Ç', 'È', 'É', 'Ê', 'Ë', 'Ì', 'Í', 'Î', 'Ï', 'Ñ', 'Ò', 'Ó', 'Ô', 'Õ', 'Ö', 'Ø', 'Ù', 'Ú', 'Û', 'Ü', 'Ý', 'Þ', 'ß', 'à', 'á', 'â', 'ã', 'ä', 'å', 'æ', 'ç', 'è', 'é', 'ê', 'ë', 'ì', 'í', 'î', 'ï', 'ð', 'ñ', 'ò', 'ó', 'ô', 'õ', 'ö', 'ø', 'ù', 'ú', 'û', 'ý', 'ý', 'þ', 'ÿ'); $list = array(); foreach($chars AS $char ) { $list[dechex(ord($char))] = $char; } ksort($list); foreach ($list as $key => $val) { echo "$key = $val, "; } that gave me this c0 = À, c1 = Á, c2 = Â, c3 = Ã, c4 = Ä, c5 = Å, c6 = Æ, c7 = Ç, c8 = È, c9 = É, ca = Ê, cb = Ë, cc = Ì, cd = Í, ce = Î, cf = Ï, d1 = Ñ, d2 = Ò, d3 = Ó, d4 = Ô, d5 = Õ, d6 = Ö, d8 = Ø, d9 = Ù, da = Ú, db = Û, dc = Ü, dd = Ý, de = Þ, df = ß, e0 = à, e1 = á, e2 = â, e3 = ã, e4 = ä, e5 = å, e6 = æ, e7 = ç, e8 = è, e9 = é, ea = ê, eb = ë, ec = ì, ed = í, ee = î, ef = ï, f0 = ð, f1 = ñ, f2 = ò, f3 = ó, f4 = ô, f5 = õ, f6 = ö, f8 = ø, f9 = ù, fa = ú, fb = û, fd = ý, fe = þ, ff = ÿ and that is if you make it smaller... \xC0-\xD6 \xD8-\xF6 \xF8-\xFB \xFD-\xFF Hope this help some one with Ü Å Ä Ö ---- Server IP: 80.64.47.13 Probable Submitter: 84.232.101.46 ---- Manual Page -- http://www.php.net/manual/en/ref.regex.php Edit -- https://master.php.net/note/edit/109536 Del: integrated -- https://master.php.net/note/delete/109536/integrated Del: useless -- https://master.php.net/note/delete/109536/useless Del: bad code -- https://master.php.net/note/delete/109536/bad+code Del: spam -- https://master.php.net/note/delete/109536/spam Del: non-english -- https://master.php.net/note/delete/109536/non-english Del: in docs -- https://master.php.net/note/delete/109536/in+docs Del: other reasons-- https://master.php.net/note/delete/109536 Reject -- https://master.php.net/note/reject/109536 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#189414) next »