<?php$preg = '/\\"dcontent\\":\\"(.*)\\"\}"/i';$msg = '这里是我想要提取的';$code = '\"dcontent\":\"'.$msg.'\"}"';if(preg_match_all($preg,$code,$link)){print_r($link);}else{exit('No match string.');}目的是提取$msg,但是总是提取不到,求找出错误
相关分类