How to carry over information in a Find/Replace
Questions about XML that are not covered by the other forums should go here.
-
- Posts: 2
- Joined: Fri Jul 06, 2018 1:48 am
How to carry over information in a Find/Replace
I have content within a tag that I need to retain in the output text, but don't know the proper syntax. I used to do this easily with FSR but don't have a 64 bit version.
Input text:
<wd.headnote jur.group="sct" year="1963">
Output text:
<wd.headnote jur.group="sct" year="1963"><note.text>
The year is the value that changes throughout the file, so I need it to carry over.
Please advise.
Thanks!
Mark
Input text:
<wd.headnote jur.group="sct" year="1963">
Output text:
<wd.headnote jur.group="sct" year="1963"><note.text>
The year is the value that changes throughout the file, so I need it to carry over.
Please advise.
Thanks!
Mark
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: How to carry over information in a Find/Replace
Hi Mark,
In the Oxygen Find/Replace dialog check the "Regular Expression" checkbox, search for:
and replace with:
Or if you want to work XML-aware, in the Oxygen Tools main menu ->"XML Refactoring" dialog there is a "Wrap Element Content" operation.
Regards,
Radu
In the Oxygen Find/Replace dialog check the "Regular Expression" checkbox, search for:
Code: Select all
(<wd.headnote jur.group="sct" year="\d+">)
Code: Select all
$1<note.text>
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “General XML Questions”
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