note 109536 added to ref.regex
| From: | swordsteel | 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