您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

php字符串操作

2024/3/21 22:28:44发布14次查看
字符串:{user:link islocal='1'} /2013/userup/100/131a2z34-800.doc {/user:link}
如何提取出/2013/userup/100/131a2z34-800.doc
回复讨论(解决方案) $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()依据空格或花括号切分也能得到
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product