HTML קוד:
<html>
<head>
<script>
function abc() {
var aaa = document.getElementById('abc').innerText;
aaa = aaa.replace('/^:\/\/([0-9,a-z,A-Z,\-]+\.)+[a-z,A-Z]{2,6}(\:[0-9]+)?(\/\S*)?$^/gi','LINK IS HERE!!');
}
</script>
</head>
<body>
<div contenteditable="true" onkeypress="abc()"></div>
</body>
</html>