I am able to replace this text -->>
"querying policy failed: No such file or directory"
fine to "HELLO"
.
document.body.innerHTML = document.body.innerHTML.replace(
/querying policy failed: No such file or directory /g,
"<span style='color:black;background-color:#ABB2B9'>HELLO</span>")
But I want to replace this text -->> "querying policy failed: No such file or directory (2)"
, which is not happening due to text in brackets -> (2).
Below code doesnt work.
document.body.innerHTML = document.body.innerHTML.replace(
/querying policy failed: No such file or directory (2)/g,
"<span style='color:black;background-color:#ABB2B9'>HELLO</span>")
Any suggestions , how to replace
querying policy failed: No such file or directory (2)
to HELLO
.