substring replace in Find/Replace
Posted: Fri Aug 06, 2021 6:25 pm
Hello,
I'm trying to fix a series of issues with some keyrefs:
<xref keyref="topicname#topicname"/>
I basically want to search across the keyrefs in a project or directory and remove the # and substring after.
The result should be:
<xref keyref="topicname"/>
If I do a find in a file, I can use the regex #.*$, but I can't seem to restrict the search/replace to @keyref.
I've tried putting //@keyref in the Xpath field, and have the Regular Expressions checkbox selected, but I get 0 results.
What am I missing?
oXygen Editor v23.1 build 2021061407
I'm trying to fix a series of issues with some keyrefs:
<xref keyref="topicname#topicname"/>
I basically want to search across the keyrefs in a project or directory and remove the # and substring after.
The result should be:
<xref keyref="topicname"/>
If I do a find in a file, I can use the regex #.*$, but I can't seem to restrict the search/replace to @keyref.
I've tried putting //@keyref in the Xpath field, and have the Regular Expressions checkbox selected, but I get 0 results.
What am I missing?
oXygen Editor v23.1 build 2021061407