ã2016/11/04追è¨ã ãã®æ¹æ³ã ã¨ä¸é¨ã®Andorid端æ«ã誤å¤å®ãã¦ãã¾ãã®ã§ãhttp://d.hatena.ne.jp/Kimura/20161104/p1 ã®è¨äºãã覧ä¸ããã if ( $ENV{HTTP_USER_AGENT} =~ m{Mozilla/\d+\.\d+ \(Linux; U; Android (\d+\.\d+[^ ^;]*); ([^ ^;]+); (.+) Build/([^)]+)\)} ) { print "Android.\n", 'version = [', $1, "]\n", 'lang = [', $2, "]\n", 'device = [', $3, "]\n", 'build_id = [', $4, "]\n"; } else { print "Not Android.\n"; }
{{#tags}}- {{label}}
{{/tags}}