摘要:
个人常用正则表达式:去除前导空格s/^\s+//去除尾部空格s/\s+$//去除前后空格s/^\s+|\s+$//g匹配任意字符/.*/s这里/s表示连换行符也匹配,因为.是不匹配换行符的,所以上面的表达式匹配任意字符。下面看第二种方法,perl中的元字符.能匹配所有单个字符,但是不能匹配换行符,如果要匹配的文本含有换行符,那么.将无法胜任,比如下面的xml文件。Response> Code>200Code> Description>SuccessDescription>Response>如果想取得Response结点中的内容,那么下面的表达式无法完成工作, 阅读全文
posted @ 2013-11-07 13:28
虾米的虾皮
阅读(708)
评论(0)
推荐(0)
摘要:
Registration-Termination-Request (RTR) Command The Registration-Termination-Request (RTR) command is indicated by the Command-Code set to 287 and the Command Flags' 'R' bit set. The Diameter server sends this command to the Diameter client in a SIP server to indicate to the SIP server th 阅读全文
posted @ 2013-11-07 09:27
虾米的虾皮
阅读(1171)
评论(0)
推荐(0)
浙公网安备 33010602011771号