Get id from ng-bind-html url

hi everyone, i need your help…
i try to extract url value from ng-bind-html, i was success try with:
.filter('hrefToJS', function ($sce, $sanitize) { return function (text) { var regex = /href="([\S]+)"/g; var newString = $sanitize(text).replace(regex, "onClick=\"''+'$1', '_system','location=yes');\" return false"); return $sce.trustAsHtml(newString); } })
and thats open system browser, but i need to grab url id from http://localhost:8100/#/konten/index.php?option=com_content&view=article&id=801&catid=35&Itemid=137
and open on my state, i had try with
` .filter(‘href’, function ($sce, $sanitize) {
return function (text) {
var reg = /href="([\S]+)"/g;
var rexeg = new RegExp(reg, "/&id=[0-9]/gm");
var regex = /href=“index.php?option=com_content&view=article&id=^([\S]+)$”/gm;
var id = /&id=[0-9]

        var newString = $sanitize(text).replace(regex,"ui-sref='app.konten({ kontenId :$1})'");
        return $sce.trustAsHtml(newString);

its fail…
and now i have stuck…
i hope you guys can help me… :slight_smile: