Replace words
PYTHON is one of the world’s most popular programming languages. In fact, it’s more so than ever. Python is also one of the most popular choices of backend programming. It is relatively new and has enormous library support.
Replace only the first word (=default) - case sensitive (=default)
PYTHON is one of the world’s most popular scripting languages. In fact, it’s more so than ever. JavaScript is also one of the most popular choices of backend programming. It is relatively new and has enormous library support.
Replace only the first word (=default) - case insensitive
JavaScript is one of the world’s most popular scripting languages. In fact, it’s more so than ever. Python is also one of the most popular choices of backend programming. It is relatively new and has enormous library support.
Replace globally - case sensitive (=default)
PYTHON is one of the world’s most popular scripting languages. In fact, it’s more so than ever. JavaScript is also one of the most popular choices of backend scripting. It is relatively new and has enormous library support.
Replace globally - case insensitive
JavaScript is one of the world’s most popular scripting languages. In fact, it’s more so than ever. JavaScript is also one of the most popular choices of backend scripting. It is relatively new and has enormous library support.
const e=document.getElementById("original").innerHTML;document.getElementById("replace1").innerHTML=e.replace("Python","JavaScript").replace("programming","scripting");document.getElementById("replace2").innerHTML=e.replace(/Python/i,"JavaScript").replace(/programming/i,"scripting");document.getElementById("replace3").innerHTML=e.replace(/Python/g,"JavaScript").replace(/programming/g,"scripting");document.getElementById("replace4").innerHTML=e.replace(/Python/gi,"JavaScript").replace(/programming/gi,"scripting");
//# sourceMappingURL=replaceWords.js.map