Something like this:
<?php
$currentUrl = 'http://example.com/test-category/page.html?_ore=norn&___frore=norian';
preg_match('~http:\/\/.*\.html~', $currentUrl, $matches);
print_r($matches);
See amigura's comment below. To handle that case change the regex:
<?php
$currentUrl = 'http://example.com/test-category/page.html?_ore=norn&___frore=norian';
preg_match('~(http:\/\/.*\..+)\?~', $currentUrl, $matches);
print_r($matches);