Subject:RegEx Search and Replace Author:Kurt Martin Date:31 Jan 2007 08:47 AM
Is there a way to use the Find/Replace feature in SS to only replace an expression within certain tags? For instance, I have <para> tags at different levels of the document, is there a way to remove all carriage returns ONLY within para tags?
Subject:RegEx Search and Replace Author:(Deleted User) Date:31 Jan 2007 01:53 PM
Hi Kurt,
unfortunately that's not possible out of the box (you can only instruct the Search & Replace to work on the text nodes, all of them).
You could try using an XSLT stylesheet...
Subject:RegEx Search and Replace Author:Kurt Martin Date:02 Feb 2007 10:35 AM
I tried this before, but tried it with the built-in, MSXML4 and Saxon 8.7.3 processors. It changes nothing. I tried the find-and-replace in SS (\r\n) you suggested before, but for some strange reason, it does NOT work in the para elements(?!?!?). It works in every other place. Even elements that are child elements to para it works.