柳暗花明笔记

    php 正则匹配反斜杠

    所属分类:[ php&web ] 猫哲学家 发表于:2016-11-22 19:32 浏览:266

    $te = 'ssage_row(6620,{\"subject\":\"Undelivered Mail Returned to Sender\",\"fromto\":\"<span class=\\\"adr\\\"><span title=\\\"MAILER-DAEMON@3fvape.com\\\" class=\\\"rcmContactAddress\\\">MAILER-DAEMON@3fvape.com<\\\/span><\\\/span>\",\"date\":\"2016-10-21 15:38\",\"size\":\"17 KB\"},{\"seen\":1,\"ctype\":\"multipart\\\/report\",\"mbox\":\"INBOX\"},false);\nthis.add_message_row(6619,{\"subject\":\"Undelivered Mail Returned to Sender\",\"fromto\":\"<span class=\\\"adr\\\"><span title=\\\"MAILER-DAEMON@3fvape.com\\\" class=\\\"rcmContactAddress\\\">MAILER-DAEMON@3fvape.com<\\\/span><\\\/span>\",\"date\":\"2016-10-21 15:09\",\"size\":\"6 KB\"},{\"seen\":1,\"ctype\":\"multipart\\\/report\",\"mbox\":\"INBOX\"},false);\nthis.add_message_row(6618,{\"subject\":\"Undelivered Mail Returned to Sender\",\"fromto\":\"<span class=\\\"adr\\\"><span title=\\\"MAILER-DAEMON@3fvape.com\\\" class=\\\"rcmContactAddress\\\">MAILER-DAEMON@3fvape.com<\\\/span><\\\/span>\",\"date\":\"2016-10-21 13:07\",\"size\":\"2 KB\"},{\"seen\":1,\"ctype\":\"multipart\\\/report\",\"mbox\":\"INBOX\"},false);\nthis.add_message_row(6617,{\"subject\":\"Undelivered Mail Returned to Sender\",\"fromto\":\"<span class=\\\"adr\\\"><span title=\\\"MAILER-DAEMON@3fvape.com\\\" class=\\\"rcmContactAddress\\\">MAILER-DAEMON@3fvape.com<\\\/span><\\\/span>\",\"date\":\"2016-10-21 13:07\",\"size\":\"2 KB\"},{\"seen\":1,\"ctype\":\"multipart\\\/';

    preg_match_all("/\\\\\"subject\\\\\":\\\\\"(.*)\\\\\",/sUi", $te, $matche);

    Array
    (
    [0] => Array
    (
    [0] => \"subject\":\"Undelivered Mail Returned to Sender\",
    [1] => \"subject\":\"Undelivered Mail Returned to Sender\",
    [2] => \"subject\":\"Undelivered Mail Returned to Sender\",
    [3] => \"subject\":\"Undelivered Mail Returned to Sender\",
    )

    [1] => Array
    (
    [0] => Undelivered Mail Returned to Sender
    [1] => Undelivered Mail Returned to Sender
    [2] => Undelivered Mail Returned to Sender
    [3] => Undelivered Mail Returned to Sender
    )

    )

    标签: php 
    上一编文章 分享一个phpstorm 激活服务器地址 下一编文章 vps centos使用shadowsocks翻墙
    最近文章
    发表评论