<script> var re=/#:(.+)/g; var ans=re.exec(location.href); alert(ans && ans[1] ? ans[1] : 'не найдено'); </script>