php - Preg_match pattern with regular expression -
as trying couple of hrs. below string.
contact: <sip:6185347017@202.65.142.187:54163> to: "915454454544"<sip:915454454544@103.24.124.2> from: "6185347017"<sip:6185347017@103.24.124.2>;tag=8237b810 call-id: otnhyzmxzdfmothmmgi1zmixnme3ogm2mgzkotfkztc. cseq: 2 invite allow: invite, ack, cancel, options, bye, refer, notify, message, subscribe, info content-type: application/sdp proxy-authorization: digest username="6185347017",realm="103.24.124.2",nonce="5f69d948-0639-11e3-8d11-238fc92f6fd0",uri="s ip:915454454544@103.24.124.2",response="39a1d1688114ec06d5ccd49bba1b4883",cnonce="3c76312b0377 9cdf9c9aa4d3f2a1962a",nc=00000001,qop=auth,algorithm=md5 user-agent: eyebeam release 1102q stamp 51814 content-length: 315
i want to:
value , from:
value , bottom content-length
, need values.
to\:\s(.*)|from\:\s(.*)|content\-length\:\s(.\*)
you got data in $1 $2 $3
Comments
Post a Comment