Find/Replace in Files
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 20
- Joined: Tue Jun 14, 2011 10:42 pm
Find/Replace in Files
Is there any way to specify a newline in the "Replace with" field in the Find/Replace in Files dialog? I'm looking for the equivalent to the "Insert Newline" option that is available in the Find/Replace dialog.
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: Find/Replace in Files
Hi,
You can enable Regular Expression and use in the Replace with field '\n' (without the quotes).
Regards,
Adrian
You can enable Regular Expression and use in the Replace with field '\n' (without the quotes).
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: Find/Replace in Files
Hi,
What version of Oxygen are you running (Help > About)?
Are you using '\n' in mid expression to search content that spans over two or more lines?
e.g. a\nb which translates to:
Please note that the "Find/Replace in Files" tool from v13.2 and earlier searches one line at a time, so this type of expression will not work. You can only search up to and including the \n character on each line. e.g. a\n
Starting with v14.0 the "Find/Replace in Files" tool has been improved to search for content that spans across multiple lines. That means that searching for a\nb works now.
Regards,
Adrian
What version of Oxygen are you running (Help > About)?
Are you using '\n' in mid expression to search content that spans over two or more lines?
e.g. a\nb which translates to:
Code: Select all
a
b
Starting with v14.0 the "Find/Replace in Files" tool has been improved to search for content that spans across multiple lines. That means that searching for a\nb works now.
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 1
- Joined: Tue Apr 08, 2014 3:57 pm
Re: Find/Replace in Files
Hi,
I'm using Oxygen 15.2, but have the same problem. Using \n in serach expression doesn't find any match, but using \s+ it will accept whitespaces and newlines. Why is \n not working ?
Same expression works when searching in within one file.
Thomas
I'm using Oxygen 15.2, but have the same problem. Using \n in serach expression doesn't find any match, but using \s+ it will accept whitespaces and newlines. Why is \n not working ?
Same expression works when searching in within one file.
Thomas
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: Find/Replace in Files
Hi,
Are you searching just for '\n' or are you using '\n' in a larger expression?
In what type of files are you searching this?
Are there any other options (other than 'Regular expression') enabled in the Find/Replace in Files dialog?
Regards,
Adrian
Are you searching just for '\n' or are you using '\n' in a larger expression?
In what type of files are you searching this?
Are there any other options (other than 'Regular expression') enabled in the Find/Replace in Files dialog?
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ 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