<?php
$dns="36.0.168.192.in-addr.arpa name = svob-19-sw-1.domain.";
preg_match("([0-9]{1,3}[\.]){3}[0-9]{1,3}.in-addr.arpa(\s)name(\s)=(\s)(.*).",$dns,$dns_out);
echo "\n---\n".$dns_out[5]."\n-----\n";
PHP Warning: preg_match(): Unknown modifier '{' in /home/atsivilev/Документы/dev/php/inventory/test.php on line 4