<?php
$var="{s:url:}http://lybase.net/bbs/index.php?mods=topicdisplay&forumid=18&postid=32{e:url:}
{s:title:}测试]三个问题可算出你是一个怎样的人{e:title:}
{s:time:}2005-11-15 09:34:22{e:time:}
{s:source:}http://lybase.net/bbs/index.php?mods=topicdisplay&forumid=18&postid=32{e:source:}
{s:writer:}美人草{e:writer:}
{s:body:}测试]三个问题可算出你是一个怎样的人{e:body:}";if(preg_match( "/\{s:title:\}(.+)\{e:title:\}/isU", $var, $result1 ) )
print_r( $result1 );
else echo "没有找到";
?>