Is there a way to replace a string which is not in id="<any_characters>"
?
I only found this How to replace a string which is not in quotes which doesn't replace a string in quotes.
(\btest\b)(?=(?:[^"]|"[^"]*")*$)
However, I want that the string can be replaced in quotes like "replace" but id="don't replace" shouldn't be replaced.