PHP头条
热点:

PHP正则小疑点


PHP正则小问题
Array
(
[description] => HTTP/1.1 200 OK
Set-Cookie: JSESSIONID=40EA513DEFAE87D378EACB79C4E8A1B5; Path=/ipcam
Content-Type: text/xml;charset=UTF-8
Transfer-Encoding: chunked
Date: Thu, 27 Jun 2013 01:08:23 GMT
Server: Apache-Coyote/1.1

c1b





1.0
GBK
UserLogin
244ab25cf7f0258401c2ae0b038ead0a


0
}

这是原字符串,我想取出其中的xml那段字符串,要肿么来写那个正则,自己写的总是为空,整不出来。

结果应该为:





1.0
GBK
UserLogin
244ab25cf7f0258401c2ae0b038ead0a




分享到:
------解决方案--------------------
那你是怎么写的?
------解决方案--------------------
关键是后面的ius不区分大小写多行匹配模式

www.phpzy.comtrue/phprm/7166.htmlTechArticlePHP正则小疑点 PHP正则小问题 Array ( [description]=>HTTP/1.1200OK Set-Cookie:JSESSIONID=40EA513DEFAE87D378EACB79C4E8A1B5;Path=/ipcam Content-Type:text/xml;charset=UTF-8 Transfer-Encoding:chunked Date:Thu,27Jun201301:08:23GMT Server...

相关文章

相关频道:

PHP之友评论

今天推荐