Edit The Code:
See Result »
Try it Yourself - ©
w3big.com
<!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>