Skip to content

Regex unable to find/replace blank lines #278

Closed

Description

Using regex expressions am unable to find empty lines. Tried both the end of line sequence.
Copying the same text in sublime simple \n finds all the blank lines.

Activity

  1. DerTolleEmil commented on Nov 19, 2015

    @DerTolleEmil

    That has been an issue for me for quite a while. Never really checked again if it's already working because I started to automatically open notepad++ again whenever I needed to replace newlines.

  2. Tyriar commented on Nov 19, 2015

    @Tyriar
    Contributor

    This problem could manifest if the lines are being split before searching as opposed to doing a full text search.

    Interesting side note; \n seems to work in find in files (Ctrl+Shift+F), just not in the find dialog (Ctrl+F).

  3. shashankt1989 commented on Nov 19, 2015

    @shashankt1989
    Author

    Couldn't even find empty lines with ^$ (in case they were being split without EOL).

  4. Tyriar commented on Nov 20, 2015

    @Tyriar
    Contributor

    Looked at the code, it does indeed look at each line individually. I'm created a new issue for multi-line matching #313

  5. added
    bug
    on Dec 14, 2015
  6. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions