Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #5465
    CaptainFlint
    Participant

    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.

    #5490
    Yutaka Emura
    Keymaster

    Replace 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”.

    #5491
    CaptainFlint
    Participant

    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.

    #5493
    Yutaka Emura
    Keymaster

    Flint 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!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.