Home
Run >
<DOCTYPE html> <html> <head> <script type="text/javascript"> var str = "This is the test of the javascript string replace function."; var reExp = /the/g; //This will replace all occurance of "the" in specifide string document.write(str.replace(reExp,"") + "</br>"); </script> </head> <body> </body> </html>