Can I use Find/Replace in Files to find files that do NOT contain a string?
Oxygen general issues.
-
- Posts: 2
- Joined: Tue Apr 30, 2024 3:43 pm
Can I use Find/Replace in Files to find files that do NOT contain a string?
Hi,
I am working with library catalog metadata and we need to identify items from a set of almost 40,000 that do not contain a specific value, e.g. "UFIR" in <mods:aggregation></mods:aggregation>. Some suggestions I found online pointed to using regex but none of the offered examples worked. Any help would be very much appreciated.
Regards, G.W.
I am working with library catalog metadata and we need to identify items from a set of almost 40,000 that do not contain a specific value, e.g. "UFIR" in <mods:aggregation></mods:aggregation>. Some suggestions I found online pointed to using regex but none of the offered examples worked. Any help would be very much appreciated.
Regards, G.W.
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Can I use Find/Replace in Files to find files that do NOT contain a string?
Hi,
I would probably attempt to use XPath for this.
The Oxygen XPath toolbar has a drop down in which you can decide to run the XPath over multiple files or over the entire project.
For example I might try an XPath like this:
//*:aggregation[not(contains(text(), 'UFIR'))]
https://www.oxygenxml.com/doc/versions/ ... xv_cgk_54b
Regards,
Radu
I would probably attempt to use XPath for this.
The Oxygen XPath toolbar has a drop down in which you can decide to run the XPath over multiple files or over the entire project.
For example I might try an XPath like this:
//*:aggregation[not(contains(text(), 'UFIR'))]
https://www.oxygenxml.com/doc/versions/ ... xv_cgk_54b
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service