atom / find-and-replace

Find and replace in a single buffer and in the project
MIT License
242 stars 198 forks source link

Regex replace \n with empty string not working #1144

Open cdalexndr opened 4 years ago

cdalexndr commented 4 years ago

Prerequisites

Description

Replace all \n regex with empty string does nothing.

Steps to Reproduce

  1. Input asd\nasd
  2. Ctrl+F, enable "Use Regex" and try to replace \n with empty string
  3. input still contains newline

Expected behavior:

Newline removed

Actual behavior:

Input still contains newline

Reproduces how often:

Ever time.

Versions

Atom : 1.53.0 Electron: 6.1.12 Chrome : 76.0.3809.146 Node : 12.4.0

Additional Information

UziTech commented 4 years ago

This issue should be on https://github.com/atom/find-and-replace

ajostergaard commented 3 years ago

"Use ripgrep" sorted this for me. :)