- AuthorPosts
- February 18, 2008 at 11:56 am #5465CaptainFlintParticipant
Sample text contents:
var test = new Array();
test[1] = 'xxx';I resized the Replace dialog so that it had multi-line edit boxes, then entered the following Find expression:
var test = new Array();
test[1] =Regular expressions are on; option to allow regexp match newline characters is turned off.
When I press Find, the text can be found (and replaced by Replace). But when I press Replace All, EE tells me that the text cannot be found anywhere in the document.
PS: When I replace real newline in the Find text with n, Replace All begins to work normally.
February 21, 2008 at 7:18 am #5490Yutaka EmuraKeymasterReplace in Files and normal Replace use different characters for New Lines. See http://www.emeditor.com/help/howto/search/search_nl.htm for information. In your case, I believe you need to use “rn” for new lines when you try to “Replace in Files”.
February 21, 2008 at 9:04 am #5491CaptainFlintParticipantYou misunderstood me. I wasn’t talking about Replace in Files, I was talking about Replace All button in normal Replace dialog, designed for working with single, currently opened file. I mean that this button (Replace All) and the button Replace just above it, behave differently.
February 21, 2008 at 6:21 pm #5493Yutaka EmuraKeymasterFlint wrote:
You misunderstood me. I wasn’t talking about Replace in Files, I was talking about Replace All button in normal Replace dialog, designed for working with single, currently opened file. I mean that this button (Replace All) and the button Replace just above it, behave differently.I apologize for misunderstanding. I reproduced this issue. Thanks!
- AuthorPosts
- You must be logged in to reply to this topic.