I have an XML with different replacement rules (RexEx and non-RegEx). Unfortunately it also replaces elements within JavaScript functions (inside the Body). This is a problem. How can I prevent this since it prevents the script from working.
Settigs:
Use XML File = Yes
Regular Expressions = No
Treat as List = No
Word Search = Yes
Case sensitive = Yes
Maximum Replacements = Replace All
Thorough = No
Strip Wrapping Paragraphs = No
Replace with PHP = No
Enable in area = Body (not in Head)
Enable in feeds = Yes
Enable in Admin = No
Enable in edit forms = No
Enable in HTML tags = No
First of all, "HuH" doesn't need the "regex" setting to be on. It is just text.
By enabling that, the other non-regex settings won't have an effect, like the "Word Search" setting.
It pretty much comes down to: make your searches smarter, so that it only replaces the cases where you actually want it.
If you can't rely on Word Search, you will need to extend your Regular Expression to do what you need.