时间:2021-07-01 10:21:17 帮助过:23人阅读
$str = "{user:link islocal='1'} /2013/userup/100/131a2Z34-800.doc {/user:link}";$preg = "#\{.*\}(.*)\{.*\}#iuUs";preg_match_all($preg, $str, $matches);print_r($matches[1]);
正则 #}\s*(\S+)\s*{#
或者用split()依据空格或花括号切分也能得到