<?php
    preg_match
('/([0-9]+)$/'$urlAlias['destination_url'], $matches);
?>

<?php
    preg_match
(
      
'/((?<!src="|href="|url="|action="|src=|href=|url=|action=)'.
      
'http:\/\/|https:\/\/|ftp:\/\/|news:\/\/|'.
      
'((?<!http:\/\/|https:\/\/)www\.))([\w\-.]+[^,.;:?!\/\s\]!"\)<>])'.
      
'([\w#&=%+@~*_\-,;:]*)([\/\w?.#&=%+@~*_\-,;:]*?)'.
      
'(?=[,.;:?!\]<>!")]*([^\/\w.#?&=%+@~*_\-,;:]|&gt;|$))/i',
      
file_get_contents("http://php.net"), $matches);
?>