+ -
当前位置:首页 → 问答吧 → 难:文件跨行匹配

难:文件跨行匹配

时间:2011-02-08

来源:互联网

满足下列条件:
1、发送报文节点Busicode =MyKey
2、接收报文节点resp_code  不等于0
满足1和2条件的,将发送报文和接收报文重定向保存下来,


文件如下:

--发送报文
[00:00:32 000931        <700750> Send...]
<?xml version="1.0" encoding="GBK" ?>
<busi_in>
    <Busicode>MyKey</Busicode>
    <busitype>01</busitype>
    此处省略n行
</busi_in>

--接收报文
[00:00:32 059931        <700750> Recv...]
HTTP/1.1 200 OK
Date: Fri, 04 Feb 2011 16:00:31 GMT
Server: Apache/2.0.63 (Unix) mod_fastcgi/2.4.2
Content-Length: 366
Connection: close
Content-Type: text/xml

<?xml version="1.0" encoding="GBK" standalone="no" ?><operation_out><req_seq>88022859803580</req_seq><resp_seq>20110205000032</resp_
seq><resp_time>20110205000032</resp_time><response><resp_type>0</resp_type><resp_code>0</resp_code><resp_desc><![CDATA[成功]]></resp
_desc></response><content><invalid_date></invalid_date><balance>0</balance></content></operation_out>

作者: bluexhb   发布时间: 2011-02-08

回复 bluexhb


    最好能给大家个例子,input 和 output 是什么样?

作者: yinyuemi   发布时间: 2011-02-08

热门下载

更多