到目前为止,我有:(1\d|7-9)\d\d+x.*
问题是,它仍然在吸引高屏幕分辨率的高端智能手机。
有没有人能想到任何可以过滤掉智能手机的东西呢?也许用这个RegEx过滤掉另一个维度?
谢谢!
*这个问题的解决方案会很好,但任何线索都会非常感谢!
以下是一些示例数据:
Mobile Device Info Screen Resolution
Apple iPad 768x1024
Apple iPhone 320x480
Apple iPhone 320x568
Apple iPod 320x480
(not set) 320x480
(not set) 720x1280
Motorola MOTXT912B Droid Razr 4G 540x960
Samsung GT-I9300 Galaxy S3 720x1280
(not set) 320x568
Samsung SGH-T999 Galaxy S3 720x1280
Samsung SGH-I747 Galaxy S3 720x1280
(not set) 1080x1920
Samsung SPH-L710 Galaxy S3 720x1280
Apple iPod 320x568
(not set) 1440x900
(not set) 540x960
DoCoMo SC-06D Galaxy SIII LTE 720x1280在这些情况下,Galaxy S3是匹配的,但我无法找到不匹配它的方法,除非所有其他平板电脑都不匹配。
发布于 2013-03-09 00:17:18
当我研究高级细分市场时,我可以选择“平板电脑流量”(而不是“包括平板电脑在内的移动设备”)作为过滤器(如果我理解正确的话,这将使您的正则表达式变得不必要)。
https://stackoverflow.com/questions/15297425
复制相似问题