text: texttext;text;var=abc;text
text: texttext;text;var=abc
'/^text: .*;var=(.*)[;|$]/im'
SIP/2.0 183 Session Progress
Via: SIP/2.0/UDP 192.168.42.60:5060;received=37.29.41.213;rport=32292;branch=z9hG4bK-402014---1df3cefc
Call-ID: 6c3c92bdb3060bedcdb2a409b90eac96
$string = 'text: texttext;text;var=abc';//'text: texttext;text;var=abc;text';
$regExpWrapper = "/(?:var=)(.*?)(?:;|$)/";
preg_match($regExpWrapper, $string, $matches);
print_r($matches);