xxxxxxxxxx
<!DOCTYPE html>
<html>
<body>
<script type="text/vbscript">
txt="This is a beautiful day"
Set objReg=CreateObject("vbscript.regexp")
objReg.Pattern="i"
document.write(objReg.Replace(txt,"##"))
</script>
</body>
</html>