Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regex unable to find/replace blank lines #278

Closed
shashankt1989 opened this issue Nov 19, 2015 · 4 comments · Fixed by #314
Closed

Regex unable to find/replace blank lines #278

shashankt1989 opened this issue Nov 19, 2015 · 4 comments · Fixed by #314
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Milestone

Comments

@shashankt1989
Copy link

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.

@DerTolleEmil
Copy link

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.

@Tyriar
Copy link
Member

Tyriar commented Nov 19, 2015

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).

@shashankt1989
Copy link
Author

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

@Tyriar
Copy link
Member

Tyriar commented Nov 20, 2015

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

@alexdima alexdima added this to the Dec 2015 milestone Nov 25, 2015
@alexdima alexdima added the bug Issue identified by VS Code Team member as probable bug label Dec 14, 2015
@jrieken jrieken assigned jrieken and unassigned alexdima Dec 16, 2015
@jrieken jrieken added the verified Verification succeeded label Dec 16, 2015
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants