young91
V2EX  ›  PHP

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

  •  
  •   young91 · Dec 21, 2015 · 3385 views
    This topic created in 3805 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  
    PRO
       Dec 21, 2015
    先 json_encode ,然后 \u 开头的,一定范围内的都算是 emoji
    /t/228273
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3210 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 03:16 · PVG 11:16 · LAX 20:16 · JFK 23:16
    ♥ Do have faith in what you're doing.