markwolk wrote:I think that af9 does not allow range search (replace text between text identifiers)... does it?
No, I don't think it does. It would be great if it supported regular expressions but I don't think it does.
markwolk wrote:If achieving this is possible within CSE HTML Validator, I'd appreciate some guidance (regex?). Opening all documents does not make it impossible for me, because most of my sites are under 100 pages. And I have a lready managed to replace exact match text across an entire website using CSE HTML Validator; the only thing I could not do is replace within a text range.
Try searching for something like (with regular expressions on):
If you want to match line breaks, then try adding (?s):
Code: Select all
(?s)<!-- here -->.*?<!-- there -->
The "(?s)" part is a modifier that makes the '.' character also match line breaks by treating the entire document as a single line.
And then replace with what you want.
I hope this helps. If you need more help, then just let me know and I'll try to help further.