young91
V2EX  ›  PHP

php 怎么正则匹配出客户端 post 内容里表情符号?

  •  
  •   young91 · Dec 21, 2015 · 3610 views
    This topic created in 3934 days ago, the information mentioned may be changed or developed.
    4 replies  •  2015-12-21 15:50:40 +08:00
    flashack
        1
    flashack  
       Dec 21, 2015
    emoji ?
    adexbn
        2
    adexbn  
       Dec 21, 2015
    (´≖◞౪◟≖)
    roys
        3
    roys  
       Dec 21, 2015
    给你一个
    '/[\x{1F600}-\x{1F64F}]|[\x{1F300}-\x{1F5FF}]|[\x{1F680}-\x{1F6FF}]|[\x{2600}-\x{26FF}]|[\x{2700}-\x{27BF}]/u';
    qiayue
        4
    qiayue  
       Dec 21, 2015
    先 json_encode ,然后 \u 开头的,一定范围内的都算是 emoji
    /t/228273
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5532 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 02:43 · PVG 10:43 · LAX 19:43 · JFK 22:43
    ♥ Do have faith in what you're doing.