1. {
    2. "features": {
    3. "code": "key_dstlmbjvbt",
    4. "explain": "去除字符串中的emoji",
    5. "cmds": [
    6. "rmEmoji"
    7. ],
    8. "icon": "logo/php.png",
    9. "platform": [
    10. "win32",
    11. "darwin",
    12. "linux"
    13. ]
    14. },
    15. "program": "php",
    16. "cmd": "<?php\nfunction filterEmoji($str)\n{\n $str = preg_replace_callback(\n '/./u',\n function (array $match) {\n return strlen($match[0]) >= 4 ? '' : $match[0];\n },\n $str);\n\n return $str;\n }\n $a = '{{ClipText}}';\n echo filterEmoji($a);\n ?>",
    17. "output": "html",
    18. "hasSubInput": false,
    19. "scptarg": "",
    20. "charset": {
    21. "scriptCode": "",
    22. "outputCode": ""
    23. },
    24. "tags": [
    25. "string"
    26. ]
    27. }