JSFiddle - React, Tailwind, and code Playground
HTML
<p>Click the button to remove occurences of the regular expression "/jquery\d+/g" in the paragraph below:</p>
<p id="demo">jquery23862347825347823478some more text_this is your jquery string ending with another code jquery293864328</p>
<button onclick="myFunction()">Try it</button>
<script>
function myFunction()
{
var str=document.getElementById("demo").innerHTML;
var n=str.replace(/jquery\d+/g,"");
document.getElementById("demo").innerHTML=n;
}
</script>