I want to widen the original question if I may: "Is there a way to limit the scope of a search/replace to the actual text that is displayed to the reader?" E.g., we can currently set the scope to "Current file", "All text files" etc. I was thinking of an additional option to set the scope, e.g., "All inner text". I believe this is what smarty pants does (could be wrong).
This option would enable us to roll our own smarty pants using the Saved searches, without worrying about false positive matches on the xml tags. I currently have a regex to match punctuation that is also matching <> in the xml elements. I guess I could try to exclude these from the regex, but it would be safer if the match scope was limited to inner text.
|